This documentation is for Machine Learner 1.0.0. View documentation for the latest release.

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


Follow the steps below to execute the sample.

  1. If Follow the steps below if you already executed a sample before, execute .

    • Execute the following command to remove the databases created: rm -rf repository/database/WSO2ML_DB.*
    • Navigate to <ML_HOME>/bin/ directory using the CLI.
    • Restart the WSO2 ML server by executing the following command: ./ -Dsetup 
  2. Navigate to <ML_HOME>/samples/rest-api/linear-regression/ directory using the CLI.


    <ML_HOME> refers to the downloaded product-ml directory with the source code of the product.

  3. Execute the following command to execute the sample: sh