Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decision tree always outputs the same result #11

Open
vallettea opened this issue Jan 24, 2017 · 0 comments
Open

Decision tree always outputs the same result #11

vallettea opened this issue Jan 24, 2017 · 0 comments

Comments

@vallettea
Copy link

Considering your machine_learning/examples/DecisionTree.js, whatever the input, teh output is always the same:

> console.log("Classify : ", dt.classify(['(direct)','USA','yes',5]));
Classify :  { None: 6, Basic: 5 }
undefined
> console.log("Classify : ", dt.classify(['slashdot','USA','yes',18]));
Classify :  { None: 6, Basic: 5 }
undefined
> console.log("Classify : ", dt.classify(['kiwitobes','France','yes',23]));
Classify :  { None: 6, Basic: 5 }
undefined
>
> console.log("Classify : ", dt.classify(['(direct)','USA','yes',5]));
Classify :  { None: 6, Basic: 5 }
undefined
> console.log("Classify : ", dt.classify(['(direct)','USA','yes',500]));
Classify :  { None: 6, Basic: 5 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant