ClassificationSolutionVersion - Global
-
- UpdatedJan 30, 2025
- 9 minutes to read
- Yokohama
- API reference
The ClassificationSolutionVersion 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.
This API is used for working with solution versions based on ClassificationSolution API objects in the ClassificationSolution store.
The system creates a solution version each time you train a solution definition. Most versions are created during scheduled solution training.
ClassificationSolutionVersion - getPredictionPerformance(Object options)
Calculates solution precision and coverage.
To use this method, you must first create settings using the setPredictionSettings() method.
Example
The following example shows how to get a precision value from the active version of a solution.
Output:
ClassificationSolutionVersion - getPredictionSettings()
Gets estimated precision, estimated coverage, estimated recall values from the ML Solutions [ml_solution] table and records from the Class Confidence [ml_class] table.
Name | Type | Description |
---|---|---|
None |
Example
The following example shows how to get prediction settings of an active solution version.
Output:
ClassificationSolutionVersion - 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:
ClassificationSolutionVersion - 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:
ClassificationSolutionVersion - getTrainingStatistics()
Gets all the training statistics for a given solution.
Name | Type | Description |
---|---|---|
None |
Example
The following example shows how to get training statistics from the active solution.
Output:
ClassificationSolutionVersion - 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:
ClassificationSolutionVersion - 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.
Output:
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.
Output:
ClassificationSolutionVersion - setPredictionSettings(Object options)
Sets precision, coverage, or recall values at solution level or class level.
Type | Description |
---|---|
None |
Example
The following example shows how to set a precision metric to 89.5 for a class named
Clone Issues
.
On this page
- ClassificationSolutionVersion - getPredictionPerformance(Object options)
- ClassificationSolutionVersion - getPredictionSettings()
- ClassificationSolutionVersion - getProperties()
- ClassificationSolutionVersion - getStatus(Boolean includeDetails)
- ClassificationSolutionVersion - getTrainingStatistics()
- ClassificationSolutionVersion - getVersionNumber()
- ClassificationSolutionVersion - predict(Object input, Object options)
- ClassificationSolutionVersion - setPredictionSettings(Object options)