Configuring machine learning services
You need to set up machine learning services before you can use the feature.
Before you begin
- Enable machine learning while installing the Persona-based UI and machine learning services are up and running.
- Add an entry in the Machine Learning Attributes Configuration
Lookup table for attribute value-mapping (name of attribute on which machine
learning is trained) with the following parameters:
- Id: Auto generated depending on Container and Service type.
- Container: The name of the catalog.
- Service type: The type of service (Categorization, Attributes, and Standardization).
- Attributes: The comma-separated full path of the attributes
on which machine learning model is trained. For many attributes, the sequence should
be same as that in the training sheet.
<Spec_name>/<Attribute_name>
Example
Product Specification/Description, Product Specification/Name
- Add an entry in the Machine Learning Services Threshold and Version
Lookup Table to set the value of threshold and version:
- Id: Auto generated depending on Container and Service type.
- Container: The name of the catalog.
- Service type: The type of service (Categorization).
- Threshold Value: If the confidence score is greater than the threshold value, a category gets mapped.
- Version: Model version to be used for prediction. By default, the latest version of a model is used if no value is specified for this parameter.
- Add an entry in the
Machine Learning Services Threshold Lookup Table to set the value
of threshold over which category should be mapped for item with the following parameters:
- Id: Auto generated depending on Container and Service type.
- Container: The name of the catalog.
- Service type: The type of service (Categorization).
- Threshold Value: If the confidence score is greater than the threshold value, a category gets mapped.
- You can add custom code for the workflow by any of the following methods:
- Upload the class files in the Docstore folder. Generate the
class files using the sample ZIP
file.Sample path that you need to add to the :
//script_execution_mode=java_api="japi://uploaded_java_classes:com.ibm.ml.extensions.workflow.MLAutoCategorizationStep.class"
- Add the JAR file in the class path. Generate the class files using the sample ZIP
file. Add the JAR file in the class
path.Sample path that you need to add to the :
//script_execution_mode=java_api="japi://com.ibm.ml.extensions.workflow.MLAutoCategorizationStep.class"
- Upload the class files in the Docstore folder. Generate the
class files using the sample ZIP
file.
Procedure
To start using machine learning services in your existing workflows or create new workflows, proceed as follows: