ruạṛ
a ���fP � @ s8 d dl mZmZmZ d dlmZ eG dd� de��ZdS )� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ sx e Zd ZdZdZdZdd� Zedd� �Ze dd � �Z e jd d � �Z e dd� �Zejd d� �Zdd� Z dd� Zdd� ZdS )�ModelMetricsz Trained Model Metrics. �KEY_VALUE_EXTRACTION�DOCUMENT_CLASSIFICATIONc K s( ddd�| _ ddd�| _d| _d| _dS )a2 Initializes a new ModelMetrics object with values from keyword arguments. This class has the following subclasses and if you are using this class as input to a service operations then you should favor using a subclass over the base class: * :class:`~oci.ai_document.models.DocumentClassificationModelMetrics` * :class:`~oci.ai_document.models.KeyValueDetectionModelMetrics` The following keyword arguments are supported (corresponding to the getters/setters of this class): :param model_type: The value to assign to the model_type property of this ModelMetrics. Allowed values for this property are: "KEY_VALUE_EXTRACTION", "DOCUMENT_CLASSIFICATION", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type model_type: str :param dataset_summary: The value to assign to the dataset_summary property of this ModelMetrics. :type dataset_summary: oci.ai_document.models.DatasetSummary �strZDatasetSummary)� model_type�dataset_summary� modelTypeZdatasetSummaryN)Z swagger_typesZ attribute_map�_model_type�_dataset_summary)�self�kwargs� r �H/usr/lib/python3.9/site-packages/oci/ai_document/models/model_metrics.py�__init__ s ��zModelMetrics.__init__c C s( | d }|dkrdS |dkr dS dS dS )z� Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype. r r Z"DocumentClassificationModelMetricsr ZKeyValueDetectionModelMetricsr Nr )Zobject_dictionary�typer r r �get_subtype<