RegressionSolutionVersion - Global
-
- UpdatedJan 30, 2025
- 5 minutes to read
- Yokohama
- API reference
The RegressionSolutionVersion API is a scriptable object used in Predictive Intelligence stores.
This API requires the Predictive Intelligence plugin (com.glide.platform_ml) and is provided
within the sn_ml
namespace.
Use this API when working with solution versions based on RegressionSolution API objects in the RegressionSolution store.
The system creates a solution version each time you train a solution definition. Most versions are created during scheduled solution training.
RegressionSolutionVersion - getProperties()
Gets solution object properties and version number.
Name | Type | Description |
---|---|---|
None |
Example
The following example gets properties of the active object version in the store.
Output:
RegressionSolutionVersion - getStatus(Boolean includeDetails)
Gets training completion status.
Name | Type | Description |
---|---|---|
includeDetails | Boolean | Flag that indicates whether to return status details. Valid values:
Default: False |
Example
The following example shows a successful result with training complete.
Output:
Example
The following example shows an unsuccessful result with training complete.
Output:
RegressionSolutionVersion - getVersionNumber()
Gets the version number of a solution object.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
String | Version number. |
Example
The following example shows how to get a version number.
Output:
RegressionSolutionVersion - predict(Object input, Object options)
Gets the input data for a prediction.
Example
The following example shows how to display prediction results for a predict() method that takes a GlideRecord by sys_id for input and includes optional parameters to restrict to top three results and exclude the threshold value.
Example
The following example shows how to display prediction results for a predict() method that takes an array of field names as key-value pairs for input and includes optional parameters to restrict to top three results and exclude the threshold value.