ChatModelMetrics¶
- class oci.generative_ai.models.ChatModelMetrics(**kwargs)¶
Bases:
ModelMetricsThe chat model metrics of the fine-tuning process.
Attributes:
A constant which can be used with the model_metrics_type property of a ModelMetrics.
A constant which can be used with the model_metrics_type property of a ModelMetrics.
Gets the final_accuracy of this ChatModelMetrics.
Gets the final_loss of this ChatModelMetrics.
[Required] Gets the model_metrics_type of this ModelMetrics.
Methods:
__init__(**kwargs)Initializes a new ChatModelMetrics object with values from keyword arguments.
get_subtype(object_dictionary)Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
- MODEL_METRICS_TYPE_CHAT_MODEL_METRICS = 'CHAT_MODEL_METRICS'¶
A constant which can be used with the model_metrics_type property of a ModelMetrics. This constant has a value of “CHAT_MODEL_METRICS”
- MODEL_METRICS_TYPE_TEXT_GENERATION_MODEL_METRICS = 'TEXT_GENERATION_MODEL_METRICS'¶
A constant which can be used with the model_metrics_type property of a ModelMetrics. This constant has a value of “TEXT_GENERATION_MODEL_METRICS”
- __init__(**kwargs)¶
Initializes a new ChatModelMetrics object with values from keyword arguments. The default value of the
model_metrics_typeattribute of this class isCHAT_MODEL_METRICSand it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):- Parameters
model_metrics_type (str) – The value to assign to the model_metrics_type property of this ChatModelMetrics. Allowed values for this property are: “TEXT_GENERATION_MODEL_METRICS”, “CHAT_MODEL_METRICS”
final_accuracy (float) – The value to assign to the final_accuracy property of this ChatModelMetrics.
final_loss (float) – The value to assign to the final_loss property of this ChatModelMetrics.
- property final_accuracy¶
Gets the final_accuracy of this ChatModelMetrics. Fine-tuned model accuracy.
- Returns
The final_accuracy of this ChatModelMetrics.
- Return type
float
- property final_loss¶
Gets the final_loss of this ChatModelMetrics. Fine-tuned model loss.
- Returns
The final_loss of this ChatModelMetrics.
- Return type
float
- static get_subtype(object_dictionary)¶
Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
- property model_metrics_type¶
[Required] Gets the model_metrics_type of this ModelMetrics. The type of the model metrics. Each type of model can expect a different set of model metrics.
Allowed values for this property are: “TEXT_GENERATION_MODEL_METRICS”, “CHAT_MODEL_METRICS”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The model_metrics_type of this ModelMetrics.
- Return type
str