ruạṛ
a ���f� � @ sD d dl mZ ddlmZmZmZ ddlmZ eG dd� de��ZdS )� )�ModelMetrics� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ sd e Zd ZdZdd� Zedd� �Zejdd� �Zedd� �Zejd d� �Zd d� Z dd � Z dd� ZdS )�ChatModelMetricsz< The chat model metrics of the fine-tuning process. c K s8 dddd�| _ dddd�| _d| _d| _d| _d| _dS ) a� Initializes a new ChatModelMetrics object with values from keyword arguments. The default value of the :py:attr:`~oci.generative_ai.models.ChatModelMetrics.model_metrics_type` attribute of this class is ``CHAT_MODEL_METRICS`` and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param model_metrics_type: 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" :type model_metrics_type: str :param final_accuracy: The value to assign to the final_accuracy property of this ChatModelMetrics. :type final_accuracy: float :param final_loss: The value to assign to the final_loss property of this ChatModelMetrics. :type final_loss: float �str�float)Zmodel_metrics_type�final_accuracy� final_lossZmodelMetricsTypeZ finalAccuracyZ finalLossNZCHAT_MODEL_METRICS)Z swagger_typesZ attribute_mapZ_model_metrics_type�_final_accuracy�_final_loss)�self�kwargs� r �O/usr/lib/python3.9/site-packages/oci/generative_ai/models/chat_model_metrics.py�__init__ s ��zChatModelMetrics.__init__c C s | j S )z� Gets the final_accuracy of this ChatModelMetrics. Fine-tuned model accuracy. :return: The final_accuracy of this ChatModelMetrics. :rtype: float �r �r r r r r 7 s zChatModelMetrics.final_accuracyc C s || _ dS )z� Sets the final_accuracy of this ChatModelMetrics. Fine-tuned model accuracy. :param final_accuracy: The final_accuracy of this ChatModelMetrics. :type: float Nr )r r r r r r C s c C s | j S )z� Gets the final_loss of this ChatModelMetrics. Fine-tuned model loss. :return: The final_loss of this ChatModelMetrics. :rtype: float �r r r r r r O s zChatModelMetrics.final_lossc C s || _ dS )z� Sets the final_loss of this ChatModelMetrics. Fine-tuned model loss. :param final_loss: The final_loss of this ChatModelMetrics. :type: float Nr )r r r r r r [ s c C s t | �S �N)r r r r r �__repr__g s zChatModelMetrics.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__j s zChatModelMetrics.__eq__c C s | |k S r r r r r r �__ne__p s zChatModelMetrics.__ne__N)�__name__� __module__�__qualname__�__doc__r �propertyr �setterr r r r r r r r r s % r N) Z model_metricsr Zoci.utilr r r Zoci.decoratorsr r r r r r �<module> s
cải xoăn