ClusteringSolutionVersion - Global
-
- UpdatedJan 30, 2025
- 14 minutes to read
- Yokohama
- API reference
The ClusteringSolutionVersion 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.
It is used for working with solution versions based on ClusteringSolution API objects in the ClusteringSolution store.
The system creates a solution version each time you train a solution definition. Most versions are created during scheduled solution training.
ClusteringSolutionVersion - cancelUpdateJob()
Cancels an update job on a trainer.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
None |
Example
The following example shows how to cancel an active training job that has been submitted using the submitTrainingJob() method.
ClusteringSolutionVersion - deleteClusterAssignments(Object options)
Deletes cluster assignments from rows by position in table sequence or GlideDateTime.
Name | Type | Description |
---|---|---|
options | Object | Object defining one option for deleting cluster assignments. Note: Only one
delete option is valid. |
options.updatedUntil | String | Deletes rows for clusters with updated_since values occurring before this value. Format must be provided as GlideDateTime. |
options.sequenceUntil | String | Deletes rows for clusters with insert_sequence values occurring before this value in the ML Cluster Detail [ml_cluster_detail] table. The sequence position starting point value is 1. |
Type | Description |
---|---|
Number | Number of rows deleted from the ML Cluster Detail [ml_cluster_detail] table. |
Example
The following example shows how to delete rows for clusters with updated_since time preceding '2020-06-28 02:50:53'.
Output:
Example
The following example shows how to delete rows for clusters with updated_since that are sequentially positioned prior to 1000.
Output:
ClusteringSolutionVersion - getClusterAssignments(Object options)
Gets assignments for a clustering solution.
Example
The following example shows how to use the options object to filter clustering results.
Output:
ClusteringSolutionVersion - getClusterInfo(Object options)
Gets information for a specified clustering solution in the store. The purity measurement provides insights as a percentage for the clustering fields on which the purity is based.
Example
The following example shows how to set the options object parameter and print the filtered cluster results.
Output:
ClusteringSolutionVersion - 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:
ClusteringSolutionVersion - 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:
ClusteringSolutionVersion - getTopNPurityInfo(Object options)
Gets the top purity results for a clustering solution. The purity measurement provides insights as a percentage for the clustering fields on which the purity is based.
Example
The following example shows how to get the top two purity results for the category field in specific cluster solutions.
Output displays purity insights based on the settings provided in the options parameter.
ClusteringSolutionVersion - getUpdateStatus()
Gets the status of the most recent clustering solution update job.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
String | State of the clustering solution update. States:
|
Example
The following example shows how to get the update status of a clustering solution.
Output:
ClusteringSolutionVersion - 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:
ClusteringSolutionVersion - 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.
ClusteringSolutionVersion - submitUpdateJob(Object options)
Submits clustering update jobs with options to narrow results to a specific table and filter for matching records.
Name | Type | Description |
---|---|---|
options | Object | JavaScript object containing options on which to base a clustering solution update. |
options.filter | String | Encoded query string in standard Glide format. See Encoded query strings. Enables running an update job based on the filter provided. |
options.table | String | Name of the table on which to run an update job. |
Type | Description |
---|---|
None |
Example
The following example shows how to submit an update job.
On this page
- ClusteringSolutionVersion - cancelUpdateJob()
- ClusteringSolutionVersion - deleteClusterAssignments(Object options)
- ClusteringSolutionVersion - getClusterAssignments(Object options)
- ClusteringSolutionVersion - getClusterInfo(Object options)
- ClusteringSolutionVersion - getProperties()
- ClusteringSolutionVersion - getStatus(Boolean includeDetails)
- ClusteringSolutionVersion - getTopNPurityInfo(Object options)
- ClusteringSolutionVersion - getUpdateStatus()
- ClusteringSolutionVersion - getVersionNumber()
- ClusteringSolutionVersion - predict(Object input, Object options)
- ClusteringSolutionVersion - submitUpdateJob(Object options)