variables
An array of variables that declare all features and prediction columns that you want to analyze. For each member in the array, specify thename, variableType, and valueType.
name
Name of the column.variableType
variableType provides the attribute that identifies the column. Supported types are:
-
feature
-
Can only be of
valueTypenumerical or categorical. - Input feature of the model.
- Data drift will be calculated for this data column.
- Must be declared while registering the model along with its training data.
- The column must be present in all training and prediction datasets registered with the model.
-
Can only be of
-
prediction (optional)
- When declared, there can only be one Prediction column.
-
Can only be of
valueTypenumerical or categorical. - Output prediction of the model.
- Data drift and model quality metrics are calculated for this data column. Include this column when registering your model to ensure both data drift and model quality analysis can be run. If it isn’t included, model quality metrics won’t be computed.
-
timestamp (optional)
-
When present, there can be only one
timestampcolumn. -
Can only be of datetime
valueType. - Although you can declare this column when adding prediction data for the first time, Domino recommends that it be declared during model registration.
- Identifies the column that contains the timestamp for the prediction made. If not declared, the ingestion time of the data in the Model Monitor is used as the timestamp of the prediction.
- Must contain the date/time when the prediction was made. Column values must follow the ISO 8601 time format.
- When it is not declared, the ingestion time of the prediction dataset into the Model Monitor is substituted as the timestamp of prediction.
- To use automatic ingestion for Snowflake, you must include this column. Snowflake’s documentation recommends setting the timezone to UTC for both the Spark cluster and the Snowflake deployment.
-
When present, there can be only one
-
row_identifier (optional)
-
Can only be of string
valueType. - Uniquely identifies each prediction row. Typically referred to as prediction ID, transaction ID, and so on.
-
When present, there can be only one
row_identifiercolumn. - Although you can declare this column when adding prediction data for the first time, Domino recommends that it be declared during model registration.
- Values are used to match ground truth data to the predictions to calculate model quality metrics. Model quality metrics will not be calculated if this column is not present. If used, must be present in both prediction and ground truth datasets.
-
Can only be of string
-
ground_truth
- Identifies the column that contains the ground truth labels in the ground truth datasets.
-
sample_weight
- Column that contains the weight to be associated with each prediction to calculate the Gini Norm metric.
-
prediction_probability
- Column that contains the probability value for the model’s prediction. Can be a single value (maps to the probability value of the positive class) or a list of values (the length of the list must match the number of unique prediction labels or classes present in the training dataset).
valueType
Identifies the value of the column. Supported types arecategorical, numerical, datetime, or string. Can only be set to datetime for one column.
forPredictionOutput
Specifies which prediction column the ground truth variable represents in Ground Truth Config.datasetDetails
name
The name to associate with this dataset instance. You can use the same name as the file you are selecting.datasetType
The supported type isfile.
datasetConfig
Defines the actual location of the file.-
path: The name of the file. If you are using Snowflake, the path is the name of the Snowflake table. -
fileFormat: .csv and parquet are supported.
snowflake.
datasourceName
Name you provided when you created the data source.datasourceType
The supported data source types are:amazon_s3, generic_s3, gcs, azure_blob, azure_data_lake_gen1, azure_data_lake_gen2, hdfs, or snowflake.
modelMetadata
Captures metadata related to the model. Specify thename, modelVersion, modelType, dataset, dateCreated, description. and author attributes.
dateCreated must be in a valid UTC format (ISO 8601). Valid values for modelType are classification and regression.