{ "sections": [ "title", "description", "file_information", "directory_location", "fields", "sub_types", "wsdl_segment", "declarative_metadata_sample_definition" ], "title": "DiscoveryAIModel - Metadata API", "description": "Represents the metadata associated with a model used in Einstein Discovery.", "file_information": ".model", "directory_location": "discovery", "fields_columns": [ "type", "description" ], "fields": { "algorithmType": { "type": "DiscoveryAlgorithmType", "description": "Algorithm that Einstein Discovery used to create the model associated with this story." }, "classificationThreshold": { "type": "double", "description": "Threshold value. Applies only to binary classification models. For regression models, this is null." }, "description": { "type": "string", "description": "Model description." }, "label": { "type": "string", "description": "Model label. If you package a model, this label appears in Package Manager." }, "modelFields": { "type": "DiscoveryModelField[]", "description": "One or more model fields (variables)." }, "modelRuntimeType": { "type": "DiscoveryModelRuntimeType", "description": "Model run-time type." }, "predictedField": { "type": "string", "description": "Name of the field that is predicted." }, "predictionType": { "type": "DiscoveryPredictionType", "description": "Type of prediction. One of the following strings: Regression Classification Unknown" }, "sourceType": { "type": "DiscoveryModelSourceType", "description": "Source type." }, "status": { "type": "DiscoveryAIModelStatus", "description": "Model status (enabled or disabled)." }, "trainingMetrics": { "type": "string", "description": "JSON object that represents metrics about the model when it was trained." }, "transformations": { "type": "DiscoveryModelTransform", "description": "One or more model transformations." } }, "sub_types": { "DiscoveryAlgorithmType": { "Best": { "type": "string", "description": "Tournament Model. Genetic algorithm used to generate high-quality solutions to optimization and search problems, like optimizing decision trees for better performance." }, "Glm": { "type": "string", "description": "Generalized Linear Model. Regression-based algorithm." }, "Gbm": { "type": "string", "description": "Gradient Boost Machine. Decision tree-based ensemble machine learning algorithm." }, "Xgboost": { "type": "string", "description": "XGBoost. Decision tree-based ensemble machine learning algorithm." }, "Drf": { "type": "string", "description": "Random Forest. Supervised learning algorithm that uses multiple decision trees, randomization, and other optimization techniques." } }, "DiscoveryModelField": { "isDisparateImpact": { "type": "boolean", "description": "Indicates whether the field is disparate impact (true) or not (false)." }, "isSensitive": { "type": "boolean", "description": "Indicates whether the field is sensitive (true) or not (false)." }, "label": { "type": "string", "description": "Field label displayed in the UI." }, "name": { "type": "string", "description": "Field name." }, "type": { "type": "DiscoveryModelFieldType", "description": "Field type. Enumerated." }, "values": { "type": "string[]", "description": "A list of field values." } }, "DiscoveryModelTransform": { "config": { "type": "string", "description": "The configuration for the transformation." }, "sourceFieldNames": { "type": "string[]", "description": "A list of the source field names." }, "targetFieldNames": { "type": "string[]", "description": "A list of the target field names." }, "type": { "type": "DiscoveryAIModelTransformationType", "description": "Type of transformation." } }, "DiscoveryAIModelTransformationType": { "TypographicClustering": { "type": "string", "description": "Typographic clustering transformation." }, "SentimentAnalysis": { "type": "string", "description": "Sentiment analysis transformation." }, "FreeTextClustering": { "type": "string", "description": "Free text clustering transformation." }, "NumericalImputation": { "type": "string", "description": "Numerical imputation transformation." }, "CatagoricalImputation": { "type": "string", "description": "Catagorical imputation transformation." }, "TimeSeriesForecast": { "type": "string", "description": "Time series forecast transformation." }, "ExtractMonthOfYear": { "type": "string", "description": "Extract month of year transformation." }, "ExtractDayOfWeek": { "type": "string", "description": "Extract day of week transformation." }, "ZipCodeAnalysis": { "type": "string", "description": "Zip code analysis transformation." } }, "DiscoveryModelFieldType": { "Text": { "type": "string", "description": "Text data type." }, "Number": { "type": "string", "description": "Number data type." }, "Date": { "type": "string", "description": "Date data type." } }, "DiscoveryModelRuntimeType": { "Discovery": { "type": "string", "description": "The model run-type is Einstein Discovery." }, "H2O": { "type": "string", "description": "The model run-type is H20." }, "T": { "type": "string", "description": "The model run-type is Tensorflow v2.4.4." }, "Tf27": { "type": "string", "description": "The model run-type is Tensorflow v2.7.0." }, "SC102": { "type": "string", "description": "The model run-type is Scikit Learn v1.0.2." } }, "DiscoveryModelSourceType": { "Discovery": { "type": "string", "description": "Einstein Discovery built the model." }, "UserUpload": { "type": "string", "description": "An external tool built the model. The model was then uploaded into Salesforce. Note: This source type is not supported in the Metadata API." } }, "DiscoveryAIModelStatus": { "Disabled": { "type": "string", "description": "The model is disabled (inactive)." }, "Uploading": { "type": "string", "description": "The model is uploading." }, "UploadFailed": { "type": "string", "description": "The model failed to upload." }, "UploadCompleted": { "type": "string", "description": "The model upload is complete." }, "Validating": { "type": "string", "description": "The model is validating." }, "ValidationFailed": { "type": "string", "description": "The model validation failed." }, "ValidationCompleted": { "type": "string", "description": "The model validation is complete." }, "Enabled": { "type": "string", "description": "The model is enabled (active)." } } }, "wsdl_segment": "```xml\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n\n \n \n \n \n\n\n \n\n\n \n \n \n \n \n \n \n\n\n \n \n \n \n \n \n \n \n\n\n \n \n \n \n \n\n\n \n \n \n \n\n\n \n \n \n \n\n\n \n \n \n \n \n \n\n\n \n \n \n \n \n \n\n\n \n \n \n\n\n \n \n \n \n \n \n \n\n```", "declarative_metadata_sample_definition": [ { "description": "Here is a sample DiscoveryAIModel:", "code": "\n\n \n Glm\n 0.7383\n \n \n \n Field\n Text\n \n \n \n PTO\n Number\n \n \n \n Level\n Text\n \n \n \n Salary\n Number\n \n \n \n Tenure\n Number\n \n Discovery\n Tenure\n Classification\n Discovery\n Enabled\n" } ] }