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.
constfactory
- FineTuningNEpochs.number(int value)
-
The number of epochs to train the model for.
constfactory
Properties
Methods
-
map<
TResult extends Object?> ({required TResult mode(FineTuningNEpochsEnumeration value), required TResult number(FineTuningNEpochsInt value)}) → TResult -
Available on FineTuningNEpochs, provided by the FineTuningNEpochsPatterns extension
Aswitch
-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 ofmap
that fallback to returningnull
. -
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 ofmap
that fallback to returningorElse
. -
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 ofwhen
that fallback to anorElse
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
Aswitch
-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 ofwhen
that fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited