ECL-ML Machine Learning Getting Started

Follow these simple steps to get started with ECL-ML

  1. Download the ML Library BETA
     
  2. Extract the contents of the zip file to the ECL IDE source folder

    The ECL Source folder is typically located at "C:\Users\Public\Documents\HPCC Systems\ECL\My Files". To locate your source folder, please refer to your ECL IDE preference, located at Preferences -> Compiler -> ECL Folders.
     

  3. Reference the library in your ECL source using a import statement as shown below:
    Example:
    		IMPORT * FROM ML;
    		 
    		IMPORT * FROM ML.Cluster;
    		 
    		IMPORT * FROM ML.Types;
    		 
    		x2 := DATASET([
    		{1, 1, 1}, {1, 2, 5},
    		{2, 1, 5}, {2, 2, 7},
    		{3, 1, 8}, {3, 2, 1},
    		{4, 1, 0}, {4, 2, 0},
    		{5, 1, 9}, {5, 2, 3},
    		{6, 1, 1}, {6, 2, 4},
    		{7, 1, 9}, {7, 2, 4}],NumericField);
    		 
    		c := DATASET([
    		{1, 1, 1}, {1, 2, 5},
    		{2, 1, 5}, {2, 2, 7},
    		{3, 1, 9}, {3, 2, 4}],NumericField);
    		 
    		x3 := Kmeans(x2,c);
    		 
    		OUTPUT(x3);
    
    		

 

Reference Material