abacusai.model_metrics

Classes

ModelMetrics

Metrics of the trained model.

Module Contents

class abacusai.model_metrics.ModelMetrics(client, algoMetrics=None, selectedAlgorithm=None, selectedAlgorithmName=None, modelId=None, modelVersion=None, metricNames=None, targetColumn=None, trainValTestSplit=None, trainingCompletedAt=None)

Bases: abacusai.return_class.AbstractApiClass

Metrics of the trained model.

Parameters:
  • client (ApiClient) – An authenticated API Client instance

  • algoMetrics (dict) – Dictionary mapping algorithm ID to algorithm name and algorithm metrics dictionary

  • selectedAlgorithm (str) – The algorithm ID of the selected (default) algorithm that will be used in deployments of this Model Version

  • selectedAlgorithmName (str) – The algorithm name of the selected (default) algorithm that will be used in deployments of this Model Version

  • modelId (str) – The Model ID

  • modelVersion (str) – The Model Version

  • metricNames (dict) – Maps shorthand names of the metrics to their verbose names

  • targetColumn (str) – The target feature that the model was trained to predict

  • trainValTestSplit (dict) – Info on train, val and test split

  • trainingCompletedAt (datetime) – Timestamp when training was completed

algo_metrics
selected_algorithm
selected_algorithm_name
model_id
model_version
metric_names
target_column
train_val_test_split
training_completed_at
deprecated_keys
__repr__()
to_dict()

Get a dict representation of the parameters in this class

Returns:

The dict value representation of the class parameters

Return type:

dict