ClusteringSolutionStore - Global
-
- UpdatedFeb 1, 2024
- 3 minutes to read
- Washington DC
- API reference
Enables storing and retrieving solutions.
The ClusteringSolutionStore
API requires the Predictive Intelligence plugin (com.glide.platform_ml) and is provided
within the sn_ml
namespace.
ClusteringSolutionStore - add(Object mlSolution)
Adds a new solution object to the store and returns a unique name.
Name | Type | Description |
---|---|---|
mlSolution | ClusteringSolution | ClusteringSolution() object to add to the store. |
Type | Description |
---|---|
String | System-generated solution name. |
Example
The following example shows how to add a solution to the store. Use ClusteringSolution - submitTrainingJob() to run the training job after adding it to the store.
ClusteringSolutionStore - deleteObject(String name)
Removes a specified solution object from the store.
Name | Type | Description |
---|---|---|
name | String | Name of the ClusteringSolution() object to be deleted. |
Type | Description |
---|---|
None |
Example
The following example shows how to delete a solution from the store.
ClusteringSolutionStore - get(String name)
Gets a solution object from the store.
Name | Type | Description |
---|---|---|
name | String | Name of a solution in the store. |
Type | Description |
---|---|
Object | ClusteringSolution object. Returns an error if the object does not exist. |
Example
The following example shows how to get a solution object from the store using the get() method and view its training status using the ClusteringSolution - getActiveVersion() and ClusteringSolutionVersion - getStatus() methods.
Output:
ClusteringSolutionStore - getAllNames(Object options)
Gets the names of all solution definition records in the store.
Type | Description |
---|---|
Array | List of strings representing solution object names in the store. |
Example
In the following example, the getAllNames() method returns a list of all names in the store.
Output:
Example
In the following example, the getAllNames() method returns only names associated with values set in the options parameter.
Output:
ClusteringSolutionStore - update(String name, Object mlSolution)
Replaces an existing object in the store with the object passed as a parameter. The object name provided must be empty or match.
Name | Type | Description |
---|---|---|
name | String | Name of the solution to update. |
mlSolution | ClusteringSolution | ClusteringSolution() object properties to update. |
Type | Description |
---|---|
None |
Example
The following example shows how to update a solution object in the store.