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.

Implementers
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
inherited
mapOrNull<TResult extends Object?>({TResult? mode(FineTuningNEpochsEnumeration value)?, TResult? number(FineTuningNEpochsInt value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult mode(FineTuningNEpochsEnumeration value)?, TResult number(FineTuningNEpochsInt value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult mode(FineTuningNEpochsOptions value)?, TResult number(int value)?, required TResult orElse()}) → TResult
inherited
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
inherited
whenOrNull<TResult extends Object?>({TResult? mode(FineTuningNEpochsOptions value)?, TResult? number(int value)?}) → TResult?
inherited

Operators

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