FineTuningNEpochs class sealed

The number of epochs to train the model for. An epoch refers to one full cycle through the training dataset.

"auto" decides the optimal number of epochs based on the size of the dataset. If setting the number manually, we support any number between 1 and 50 epochs.

Available extensions
Annotations
  • @freezed

Constructors

FineTuningNEpochs.fromJson(Map<String, dynamic> json)
Object construction from a JSON representation
factory
FineTuningNEpochs.mode(FineTuningNEpochsOptions value)
The mode for the number of epochs.
const
factory
FineTuningNEpochs.number(int value)
The number of epochs to train the model for.
const
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value Object
no setterinherited

Methods

map<TResult extends Object?>({required TResult mode(FineTuningNEpochsEnumeration value), required TResult number(FineTuningNEpochsInt value)}) → TResult

Available on FineTuningNEpochs, provided by the FineTuningNEpochsPatterns extension

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>({TResult? mode(FineTuningNEpochsEnumeration value)?, TResult? number(FineTuningNEpochsInt value)?}) → TResult?

Available on FineTuningNEpochs, provided by the FineTuningNEpochsPatterns extension

A variant of map that fallback to returning null.
maybeMap<TResult extends Object?>({TResult mode(FineTuningNEpochsEnumeration value)?, TResult number(FineTuningNEpochsInt value)?, required TResult orElse()}) → TResult

Available on FineTuningNEpochs, provided by the FineTuningNEpochsPatterns extension

A variant of map that fallback to returning orElse.
maybeWhen<TResult extends Object?>({TResult mode(FineTuningNEpochsOptions value)?, TResult number(int value)?, required TResult orElse()}) → TResult

Available on FineTuningNEpochs, provided by the FineTuningNEpochsPatterns extension

A variant of when that fallback to an orElse callback.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes this FineTuningNEpochs to a JSON map.
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>({required TResult mode(FineTuningNEpochsOptions value), required TResult number(int value)}) → TResult

Available on FineTuningNEpochs, provided by the FineTuningNEpochsPatterns extension

A switch-like method, using callbacks.
whenOrNull<TResult extends Object?>({TResult? mode(FineTuningNEpochsOptions value)?, TResult? number(int value)?}) → TResult?

Available on FineTuningNEpochs, provided by the FineTuningNEpochsPatterns extension

A variant of when that fallback to returning null

Operators

operator ==(Object other) bool
The equality operator.
inherited