EncoderStore - Global
-
- UpdatedJan 30, 2025
- 2 minutes to read
- Yokohama
- API reference
The EncoderStore API provides methods to store and retrieve encoders.
This API requires the Predictive Intelligence plugin (com.glide.platform_ml) and is provided
within the sn_ml
namespace.
EncoderStore - add(Object mlEncoder)
Adds a new encoder object to the store and returns a unique name.
Type | Description |
---|---|
String | System-generated solution name. |
Example
The following example shows how to add an encoder to the store. Use Encoder - submitTrainingJob() to run the training job after adding it to the store.
EncoderStore - deleteObject(String name)
Removes a specified encoder object from the store.
Name | Type | Description |
---|---|---|
name | String | Name of the Encoder() object to be deleted. |
Type | Description |
---|---|
None |
Example
The following example shows how to delete an encoder from the store.
EncoderStore - get(String name)
Gets an encoder object from a store.
Name | Type | Description |
---|---|---|
name | String | Name of an encoder in a store. |
Type | Description |
---|---|
Object | Encoder object. Returns an error if the object does not exist. |
Example
The following example shows how to get an encoder object from the store using the get() method and view its training status using the Encoder - getActiveVersion() and EncoderVersion - getStatus() methods.
Output:
EncoderStore - getAllNames(Object options)
Gets the names of all encoder definition records in the store.
Type | Description |
---|---|
Array | List of strings representing encoder 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:
EncoderStore - update(String name, Object mlEncoder)
Updates an encoder object in a store.
Name | Type | Description |
---|---|---|
name | String | Name of the encoder to update. |
mlEncoder | Encoder | Encoder() object properties to update. |
Type | Description |
---|---|
None |
Example
The following example shows how to update an encoder object in the store.