Skip to content

Example implementation of the ID3 decision tree algorithm using Node.js/JavaScript

Notifications You must be signed in to change notification settings

MitchK/node-machinelearning-id3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-machinelearning-id3

Example implementation of the ID3 decision tree machine learning algorithm in JavaScript.

Usage:

var id3 = require('node-machinelearning-id3');

var samples = [...];
var consideredAttributes = ['A', 'B', 'C'];
var targetAttribute = 'X';

var decisionTree = id3.createDecisionTree(samples, consideredAttributes, targetAttribute);


var testSample = { ... };
var prediction = decisionTree.predict(testSample);

About

Example implementation of the ID3 decision tree algorithm using Node.js/JavaScript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published