Unknown macro: {next_previous_links}
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

The following sections walk you through the basic features of WSO2 ML to get you started.

Before you begin,

  1. Install Oracle Java SE Development Kit (JDK) version 1.6.24 or later or 1.7.* and set the JAVA_HOME environment variable.
  2. Download WSO2 ML.
  3. Start the ML by going to <ML_HOME>/bin using the command-line and executing wso2server.bat  (for Windows) or  wso2server.sh  (for Linux.) 

 

Step 1: Create a dataset

  1. Log into the ML UI using admin as both the username and password. The following will be displayed in the Home page.
     
  2. Click ADD DATASET to open the Create Dataset page. 
  3. In the Data Source field, click Choose File and browse for the <ML_HOME>/samples/tuned/naive-bayes/breastCancerWisconsin.csv file. Enter values for the rest of the parameters as shown below.

    Parameter NameValue
    Dataset NameBreast_Cancer_Dataset
    Version1.0.0
    DescriptionBreast cancer data in Winconsin.
    Source TypeFile
    Data FormatCSV
    Column Header AvailableYes
  4. Click CREATE DATASET to save your changes. The Datasets page will open and the dataset you entered will be displayed as follows.
     Note that the status of the dataset is Processing.
  5. Click REFRESH. The status of the dataset will change to Processed as shown below.
     

Step 2: Create a project

Create a new project as follows.

  1. Log into the ML Management Console if you are not already logged in.
  2. Click ADD PROJECT


    If you are already logged in, you can click CREATE PROJECT in the DATASETS page as shown below. 
     
  3. In the Create Project page, enter information as shown below.

    Parameter NameDescription
    Project NameBreast_Cancer_data_analytics_project
    DescriptionThis project performs predictive analysis on the breast cancer data in Wisconsin.
    DatasetBreast_Cancer_Dataset
  4. Click Create Project to save the information. The project will be displayed in the Projects page as follows.
     

Step 3: Create an analysis and train a model

  1. Log into the ML UI if you are not already logged in. 
  2. Click the You have X projects link as shown below.
  3. Click on the Breast_Cancer_data_analytics_project project to expand it.
  4. Enter breast_cancer_analysis_1 as the analysis name and click CREATE ANALYSIS. The following page will appear displaying the summary statistics.
     
  5. Click Next without making any changes to the summary statistics.

    The Explore view will open. You will notice that Parallel Sets and Trellis Chart visualisations are enabled, and Scatter Plot and Cluster Diagram visualisations are disabled. This is determined by the feature types of the dataset. Select and clear the checkboxes for categorical features as follows.
     

  6. Click Next. The Algorithms view will be displayed. Enter values as shown below.

    ParameterValue
    Algorithm nameLOGISTIC REGRESSION L_BFGS
    Response variableClass
    Train data fraction0.7
  7. Click Next. The Parameters view will appear.Enter L2 as the reg type.
     
  8. Click Next. The Model view will appear. Select Breast_Cancer_Dataset-1.0.0 as the dataset version.
     
  9. Click RUN to perform the analysis.
    The analysis will be created and displayed for the project as shown below.

Step 4: Predict

  1. Log into the ML UI if you are not already logged in. 
  2. Click the You have X projects link as shown below to open the Projects window.
     
  3. Click MODELS for the breast_cancer_analysis_1  analysis.
  4. Click Predict on the model displayed.
     
  5. Enter values in the Predict page as shown below.

    Parameter NameValue
    Prediction SourceFeature values
    SampleCodeNumber1018561
    ClumpThickness2
    UniformityOfCellSize1
    UniformityOfCellShape1
    MarginalAdhesion1
    SingleEpithelialCellSize2
    BareNuclei1
    BlandChromati1
    NormalNucleoli1
    Mitoses5
  6. Click Predict. The prediction will be displayed as follows.
     
  • No labels