Class TrainingConfig
The fine-tuning method and hyperparameters used for fine-tuning a custom model.
Inherited Members
Namespace: Oci.GenerativeaiService.Models
Assembly: OCI.DotNetSDK.Generativeai.dll
Syntax
[JsonConverter(typeof(TrainingConfigModelConverter))]
public class TrainingConfig
Properties
EarlyStoppingPatience
Declaration
[JsonProperty(PropertyName = "earlyStoppingPatience")]
public int? EarlyStoppingPatience { get; set; }
Property Value
Type | Description |
---|---|
int? | Stop training if the loss metric does not improve beyond 'early_stopping_threshold' for this many times of evaluation. |
EarlyStoppingThreshold
Declaration
[JsonProperty(PropertyName = "earlyStoppingThreshold")]
public double EarlyStoppingThreshold { get; set; }
Property Value
Type | Description |
---|---|
double | How much the loss must improve to prevent early stopping. |
LearningRate
Declaration
[JsonProperty(PropertyName = "learningRate")]
public double LearningRate { get; set; }
Property Value
Type | Description |
---|---|
double | The initial learning rate to be used during training |
LogModelMetricsIntervalInSteps
Declaration
[JsonProperty(PropertyName = "logModelMetricsIntervalInSteps")]
public int? LogModelMetricsIntervalInSteps { get; set; }
Property Value
Type | Description |
---|---|
int? | Determines how frequently to log model metrics.
|
TotalTrainingEpochs
Declaration
[JsonProperty(PropertyName = "totalTrainingEpochs")]
public int? TotalTrainingEpochs { get; set; }
Property Value
Type | Description |
---|---|
int? | The maximum number of training epochs to run for. |
TrainingBatchSize
Declaration
[JsonProperty(PropertyName = "trainingBatchSize")]
public int? TrainingBatchSize { get; set; }
Property Value
Type | Description |
---|---|
int? | The batch size used during training. |