MetricOut class

Metrics at the step number during the fine-tuning job. Use these metrics to assess if the training is going smoothly (loss should decrease, token accuracy should increase).

Annotations
  • @freezed

Constructors

MetricOut({@JsonKey(name: 'train_loss', includeIfNull: false) double? trainLoss, @JsonKey(name: 'valid_loss', includeIfNull: false) double? validLoss, @JsonKey(name: 'valid_mean_token_accuracy', includeIfNull: false) double? validMeanTokenAccuracy})
Factory constructor for MetricOut
const
factory
MetricOut.fromJson(Map<String, dynamic> json)
Object construction from a JSON representation
factory

Properties

copyWith → $MetricOutCopyWith<MetricOut>
Create a copy of MetricOut with the given fields replaced by the non-null parameter values.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
trainLoss double?
No Description
no setterinherited
validLoss double?
No Description
no setterinherited
validMeanTokenAccuracy double?
No Description
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes this MetricOut to a JSON map.
inherited
toMap() Map<String, dynamic>
Map representation of object (not serialized)
toString() String
A string representation of this object.
inherited
validateSchema() String?
Perform validations on the schema property values

Operators

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

Constants

propertyNames → const List<String>
List of all property names of schema