:py:mod:`abacusai.model_metrics`
================================

.. py:module:: abacusai.model_metrics


Module Contents
---------------

Classes
~~~~~~~

.. autoapisummary::

   abacusai.model_metrics.ModelMetrics




.. py:class:: ModelMetrics(client, algoMetrics=None, selectedAlgorithm=None, modelId=None, modelVersion=None, metricNames=None, targetColumn=None, trainValTestSplit=None, trainingCompletedAt=None, baselineMetrics=None)

   Bases: :py:obj:`abacusai.return_class.AbstractApiClass`

   Metrics of the trained model.

   :param client: An authenticated API Client instance
   :type client: ApiClient
   :param algoMetrics: Dictionary mapping algorithm ID to algorithm name and algorithm metrics dictionary
   :type algoMetrics: dict
   :param selectedAlgorithm: The algorithm ID of the selected (default) algorithm that will be used in deployments of this Model Version
   :type selectedAlgorithm: str
   :param modelId: The Model ID
   :type modelId: str
   :param modelVersion: The Model Version
   :type modelVersion: str
   :param metricNames: Maps shorthand names of the metrics to their verbose names
   :type metricNames: dict
   :param targetColumn: The target feature that the model was trained to predict
   :type targetColumn: str
   :param trainValTestSplit: Info on train, val and test split
   :type trainValTestSplit: dict
   :param trainingCompletedAt: Timestamp when training was completed
   :type trainingCompletedAt: datetime
   :param baselineMetrics: Key/value pairs of the baseline model metrics and their values
   :type baselineMetrics: dict

   .. py:method:: __repr__()

      Return repr(self).


   .. py:method:: to_dict()

      Get a dict representation of the parameters in this class

      :returns: The dict value representation of the class parameters
      :rtype: dict



