lagodiuk / decision-tree-js Goto Github PK
View Code? Open in Web Editor NEWSmall JavaScript implementation of ID3 Decision tree
License: MIT License
Small JavaScript implementation of ID3 Decision tree
License: MIT License
Not really an issue, but it would be cool if passed an array (say of keywords) we could check against all keywords instead of just pushing the array together and checking for exact matches.
So right now if I pass ['here','are',keywords'] it will just check for 'here,are,keywords'. Which essentially checks for an exact match on the array, but I am looking to predict an attribute, based on how many keywords I match. and the keywords could be variable, so one item may have 1 keyword while another may have 6.
I tried figuring out where I want to modify the js to do this, but I am VERY new to machine learning and so I don't fully understand how everything works together yet.
decision-tree-js/decision-tree.js
Line 331 in 9197778
Please change this line to:
predicate = predicates[tree.predicateName];
This single line change enables using a pre-saved root by setting decisionTree.root = savedRoot
Would be nice to add additional functionality to save the root as well as build a dt object without input data.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.