Machine Learning - Getting Started

Printer-friendly versionE-Mail
 
Download the ML LibraryBETA
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.
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);

		
 

Contact Us

email us   Email us
Toll-free   US: 1.877.316.9669
International   Intl: 1.678.694.2200

Sign up to get updates through
our social media channels:

facebook  twitter  LinkedIn  Google+  Meetup  rss  Mailing Lists

Get Started