DatasetDefinition - Global
-
- UpdatedJan 30, 2025
- 3 minutes to read
- Yokohama
- API reference
The DatasetDefinition API provides methods to identify a set of records including a table name, columns, and row selection criteria to use as input for ML training algorithms. Datasets don't contain the actual data.
This API requires the Predictive Intelligence plugin (com.glide.platform_ml) and is provided
within the sn_ml
namespace. For information, see Predictive Intelligence.
For usage guidelines, refer to Using ML APIs.
DatasetDefinition - DatasetDefinition(Object)
Creates an instance of the DatasetDefinition class, enabling you to define a dataset by table name, fields, and query.
Create your dataset definition by passing a table and a list of fields. You can also pass a query to restrict datasets to include rows with specific characteristics.
Once created, a DatasetDefinition object cannot be modified.
Example
The following example shows how to create a dataset definition.
DatasetDefinition - getEligibleFields(String capability)
Returns a list of fields that are eligible as either input fields (features) or predicted fields regarding a solution of a given capability, for example, a classification solution. Eligibility is determined based on the fields having the appropriate glide data types.
Name | Type | Description |
---|---|---|
capability | String | Capability for which to retrieve fields eligible for training. This method
currently only supports classification solutions, any other value for the capability
throws a "capability not supported" exception. Valid values:
|
Type | Description |
---|---|
Object | Object containing eligible input field names and eligible output field names. |
<Object>.eligibleInputFieldNames | List of strings indicating input fields eligible for training. Data type: Array |
<Object>.eligibleOutputFieldNames | List of strings indicating output fields eligible for training. Data type: Array |
Example
The following example shows how to display eligible fields for a classification solution.
Output: