---
schema_version: "1"
id: e9b4fa082e95b5db9c416e888c46c3d87cf2b26d7de84283675766a7a3c7bdd3
title: MLModelMetric
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_mlmodelmetric.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_mlmodelmetric.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 4d763b5676f6681a802650450bdb4b2b585e63d9755691e4cb5004044689841c
description: Represents a metric or statistic about the related model, such as accuracy, precision, or RSquared. Use a model’s metrics to learn about its performance and to compare it with other models. This object is available in API version 53.0 and later.
---
# MLModelMetric

Represents a metric or statistic about the related model, such as accuracy, precision, or RSquared. Use a model’s metrics to learn about its performance and to compare it with other models. This object is available in API version 53.0 and later.

## Supported Calls

describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()

## Special Access Rules

Available with Einstein Prediction Builder and Einstein Recommendation Builder.

## Fields

| Field | Details |
| --- | --- |
| BasicMetricValue | 
Type

double

Properties

Filter, Nillable, Sort

Description

The value of a basic metric. A basic metric is a single number. For metrics that comprise a set of graph points, see ComplexMetricValue .



 |
| ComplexMetricValue | 

Type

textarea

Properties

Nillable

Description

The X and Y values for a complex metric. A complex metric is a coordinate on a graph. For example, in classification models, you can use a line on a graph to create classification categories.



 |
| DataSetType | 

Type

picklist

Properties

Filter, Group, Nillable, Restricted picklist, Sort

Description

The type of dataset.

Possible values are:

- Baseline
- HoldOut
- Live
- Model
- Training





 |
| EndTime | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

The date and time when the model training finished.



 |
| GraphType | 

Type

picklist

Properties

Filter, Group, Nillable, Restricted picklist, Sort

Description

The type of graph.

Possible values are:

- ConfidencePlot
- ConfusionMatrixPerThreshold
- DiscountedCumulativeGainsGraph
- HitRateGraph
- KBasedRankingGraph
- LiftPlot
- MeanReciprocalRankGraph
- MultiClassConfusionMatrixPerThreshold
- MultiClassMisclassifications
- NormalizedDiscountedCumulativeGainsGraph
- PrecisionGraph
- RecallGraph
- RegressionErrorBands





 |
| MetricType | 

Type

picklist

Properties

Filter, Group, Nillable, Restricted picklist, Sort

Description

The type of metric.

Possible values are:

- Accuracy
- AveragePrecision
- BalancedAccuracy
- DiscountedCumulativeGainAtK
- ExpectedTopAbsoluteRank
- ExpectedTopPercentileRank
- F1Score
- FMeasure
- HitRateAtK
- LiftBucket
- MeanAbsoluteError
- MeanAbsoluteRank
- MeanAveragePrecisionAtK
- MeanPercentileRank
- MeanReciprocalRank
- MeanReciprocalRankAtK
- MeanTopReciprocalRank
- NormalizedDiscountedCumulativeGainsAtK
- Precision
- PrecisionAtK
- RSquared
- Recall
- RecallAtK
- RootMeanSquaredError
- auPR
- auROC





 |
| ModelId | 

Type

reference

Properties

Filter, Group, Sort

Description

The ID of the related MLModel.

This field is a polymorphic relationship field.

Relationship Name

Model

Relationship Type

Lookup

Refers To

MLModel



 |
| Name | 

Type

string

Properties

Autonumber, Defaulted on create, Filter, idLookup, Sort

Description

An automatically generated ID that uniquely identifies the metric.



 |
| RowCount | 

Type

int

Properties

Filter, Group, Nillable, Sort

Description

The number of rows.



 |
| Span | 

Type

picklist

Properties

Filter, Group, Nillable, Restricted picklist, Sort

Description

The time span for the metric. Possible values are:

- Day
- Hour
- Month
- SinceLastAction
- Week





 |
| StartTime | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

The date and time when the model training started.



 |