Skip to content

Comment on Decision tree learner will predict whether you prefer cats or dogsparent

Comments

It figures it out on its own.

You can see the entire tree at http://cord-sa.appspot.com/dumpDT

Nice!

How big is the pool of variables it can choose from?

Any insight on why it choose 'region' and 'browserHeight' first?

Ugh, I thought I'd answered this but looks like HN lost my response :-(

> How big is the pool of variables it can choose from?

Currently it is just: screenWidth/Height, browserWidth/Height, browser, browserVersion, os, referrer, city, region, country.

It picks the variables based on how well they partition the datasets into diverse sub-groups. This is the code that does that job:

https://github.com/sanity/quickdt/blob/master/src/main/java/...

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.