Method
getModelMetrics GET
Copy GET

Retrieves metrics for all the algorithms trained in this model version.

Arguments:

REQUIRED KEY TYPE DESCRIPTION
Yes modelId str Unique string identifier for the model.
No modelVersion str Version of the model.
No returnGraphs bool If true, will return the information used for the graphs on the model metrics page such as PR Curve per label.
No validation bool If true, will return the validation metrics instead of the test metrics.
Note: The arguments for the API methods follow camelCase but for Python SDK underscore_case is followed.

Response:

KEY TYPE DESCRIPTION
success Boolean true if the call succeeded, false if there was an error
result ModelMetrics
KEY TYPE Description
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

Exceptions:

TYPE WHEN
DataNotFoundError

modelId is not found.

Language: