Introduction
Prerequisites
Download WSO2 Machine Learner, and start the server.
Building the sample
Execute the following command to download the source code of the product: git clone https://github.com/wso2/product-ml.git
Executing the sample
Follow the steps below to execute the sample.
Navigate to
<ML_HOME>/samples/rest-api/decision-tree/
directory using the CLI.<ML_HOME>
refers to the downloadedproduct-ml
directory with the source code of the product.- Execute the following command to execute the sample:
sh model-generation.sh
Output of the sample
If the sample executed successfully, the model will be generated by default in the /tmp/
directory of your machine. For example, the generated file will be in the following format denoting the date and time when it was generated:
model.1.2015-03-20_13:29:10
You can change the location where the output model file is saved, by defining the folder path of the required location for the value of the location
element in the <ML_HOME>/samples/rest-api/decision-tree/create-model-storage
file.