Prediction Input
Input representation of the features for which predictions are to be fetched.
An example of inputType as Records.
An example of inputType as RawData.
An example of inputType as RecordOverrides.
An example of inputType as ExtractedRawData.
An example of inputType as ExtractedRecordOverrides.
| Name | Type | Description | Required or Optional | Available Version |
|---|---|---|---|---|
async | Boolean | Indicates whether the execution mode is async (true) or not (false). | Optional | 55.0 |
columnNames | String[] | Comma-separated list of column names representing the columns that the model analyzes. These are the features that are inputs to the model for predicting the scores. | Optional Note: This field is required when type is rawdata or recordOverrides. | 55.0 |
enableFeaturePersistence | Boolean | Indicates whether you want to persist the features (true) or not (false). | Optional Note: This field is required only if raw data or when features are extracted. | 55.0 |
enableInsightPersistence | Boolean | Indicates whether you want to persist the insights (true) or not (false).Note: The enableScorePersistence field must be enabled to persist insights. | Optional | 55.0 |
enableScorePersistence | Boolean | Indicates whether you want to persist the prediction scores (true) or not (false). | Optional | 55.0 |
enableSuggestionPersistence | Boolean | Indicates whether you want to persist the suggestions (true) or not (false).Note: The enableScorePersistence field must be enabled to persist suggestions. | Optional | 55.0 |
enrichModelClassification | Boolean | Indicates whether you want to retrieve the classification model type and the classification threshold (true) or not (false). | Optional | 55.0 |
enrichModelFeatures | Boolean | Indicates whether you want to retrieve the model feature details, including label and data type (true) or not (false). | Optional | 55.0 |
enrichPredictionDefinition | Boolean | Indicates whether you want to retrieve the prediction definition label (true) or not (false). | Optional | 55.0 |
featureColumnMap | Map<String, String> | Represents the map that contains which features must be persisted and where they must be persisted. The key-value pair must contain:
| Optional | 55.0 |
featureExtractorDevName | String | The API name of the feature extractor record. | Optional Note: This field is required when the usecaseModel doesn’t have a default Feature Extractor and the input type is ExtractedRawData or ExtractedRecordOverrides. | 55.0 |
featureExtractionParameters | Feature Extraction Parameters Field Map Value[] | Represents the input parameters that are required by the Feature Extractor to extract the features that a model requires to make the prediction. Supports a maximum of 200 records. | Optional Note: This field is required when the input type is ExtractedRawData or ExtractedRecordOverrides. | 55.0 |
featureExtractorId | String | The ID of the feature extractor record from the AIFeatureExtractor object. The specified feature extractor is used to extract the features for the prediction. For information on the custom feature extractor interface implementation, see CustomFeatureExtractor Interface. | Optional | 55.0 |
historyReferencePoint | String | Represents a reference point for a comparison between current and previous prediction scores. | Optional | 55.0 |
inputType | String | The type of input used to make the prediction. Supports a maximum of 200 records. Possible values are:
| Required | 55.0 |
insightColumnMap | Map<String, String> | Represents the map that contains which insight’s Name/Value must be persisted, and to which object they must be persisted. The key-value pair must contain:
| Optional | 55.0 |
insightsSettings | Map<String, Integer> | A map for configuring insight settings. Here are the settings that contribute to the prediction score:
For more information, see Define Maximum Suggestions and Insights in the AI Accelerator Admin Guide. | Optional | 55.0 |
predictionDefinition | String | The developer name or API name from the DiscoveryGoal object. | Required | 55.0 |
rawData | Raw Data Input Wrap[] | A two-dimensional array of row values in which each row is a comma-separated list of values for features provided in columnNames. Supports a maximum of 200 records. | Optional Note: This field is required when the input type is RawData or RecordOverrides. | 55.0 |
records | String[] | The IDs of the Salesforce record that is used as input features for model to make the prediction. | Optional Note: This field is required when the input type is Records, RecordOverrides, or ExtractedRecordOverrides. | 55.0 |
scorePersistenceColumn | String | The name and value of the score that must be persisted, and to which object it must be persisted. The valid format is ResponseObject.FieldName. | Optional. Note: This field is required when enableScorePersistence is set to true. If enableScorePersistence is true and the value isn’t specified, the score column map from the setup page is used by default. | 55.0 |
suggestionColumnMap | Map<String, String> | Represents the map that contains which suggestions Name/Value must be persisted, and to which object they must be persisted. The key-value pair must contain:
| Optional | 55.0 |
usecaseDefinition | String | The ID of the usecase definition record from the AIUsecaseDefinition object. | Optional | 55.0 |
usecaseDevname | String | The API name of the usecase definition record. | Required | 55.0 |