Newer Version Available
MLDataDefinition
File Suffix and Directory Location
MLDataDefinition components have the suffix .mlDataDefinition and are stored in the mlDataDefinitions folder.
Version
MLDataDefinition is available in API version 50.0 and later.
Fields
| Field Name | Field Type | Description |
|---|---|---|
| developerName | string | Required. Represents the name of the data definition. Can contain only underscores and alphanumeric characters and must be unique in your org. It must begin with a letter, not include spaces, not end with an underscore, and not contain two consecutive underscores. |
| entityDeveloperName | string | Required. The developer name of the object from which the model data is retrieved. |
| excludedFields | string[] | Fields that are excluded from the model. |
| includedFields | string[] | Fields that are included in the model. |
| joinFields | MLField[] | Reserved for future use. |
| parentDefinitionDevName | string | Reserved for future use. |
| scoringFilter | MLFilter | Specifies records to which the prediction scores are written. |
| segmentFilter | MLFilter | This field further filters data used in training and scoring when segmentFilter is combined with both scoringFilter and trainingFilter. For example, select all records in a specific region. |
| trainingFilter | MLFilter | Specifies the records that make up the training set. |
| type | MLDataDefinitionType (enumeration of type string) | Required. Valid values are:
|
MLField
Represents a single field in the data definition. Available in API version 50.0 and later.
| Field Name | Field Type | Description |
|---|---|---|
| entity | string | Required. The object that contains the field. |
| field | string | Required. The name of the field. |
| relatedField | MLField | Reserved for future use. |
| relationType | MLRelationType (enumeration of type string) | Reserved for future use. Valid values are:
|
| type | MLFieldType (enumeration of type string) | Required. How the field is used in a prediction. Valid values are:
|
MLFilter
Represents a data filter based on a data comparison. For each comparison, there’s a left-hand element, an operator, and a right-hand element. For each record, only one of these left-hand elements is populated: lhFilter, lhPredictionField, or lhValue. Similarly, for each record, only one of these right-hand elements is populated: rhFilter, rhPredictionField, or rhValue. Available in API version 50.0 and later.
| Field Name | Field Type | Description |
|---|---|---|
| filterName | string | Required. Name of the filter. |
| lhFilter | MLFilter | Left-hand filter condition. |
| lhPredictionField | string | Left-hand prediction field. |
| lhType | AIValueType (enumeration of type string) | The value type if a left-hand value is specified. Valid values are:
|
| lhUnit | AIFilterUnit (enumeration of type string) | The unit if a left-hand filter is specified. Valid values are:
|
| lhValue | string | The left-hand value. |
| operation | AIFilterOperation (enumeration of type string) | Required. Valid values are:
|
| rhFilter | MLFilter | Right-hand filter condition. |
| rhPredictionField | string | Right-hand prediction field. |
| rhType | AIValueType (enumeration of type string) | The value type if a right-hand value is specified. Valid values are:
|
| rhUnit | AIFilterUnit (enumeration of type string) | The unit if a right-hand filter is specified. Valid values are:
|
| rhValue | string | The right-hand value. |
| sortOrder | int | Specifies the order of operations for evaluating the expressions. For example, if you have two conditions, this field specifies which condition is evaluated first. |
Wildcard Support in the Manifest File
This metadata type supports the wildcard character * (asterisk) in the package.xml manifest file. For information about using the manifest file, see Deploying and Retrieving Metadata with the Zip File.