igrigorik / decisiontree

ID3-based implementation of the ML Decision Tree algorithm
1.44k stars 130 forks source link

I can't seem to graph anything using this gem #15

Closed jhysum closed 10 years ago

jhysum commented 10 years ago

I copied and pasted the example code and i have installed graphr and graphviz but nothing happens when i run the code. I was wondering how the graph function is suppose to work. Nothing gets saved into my directory as well.

igrigorik commented 10 years ago

Which example code?

jhysum commented 10 years ago

I tried the code in the readme and also in the decision learning tree article. The .graph doesn't work and it doesn't write to my directory. I think it's the graphr gem's problem but was wondering if you knew about it.

igrigorik commented 10 years ago

Make sure you have graphviz installed on your system.. guessing, that's the problem.

If you're use homebrew: brew install graphviz (aka, not just the gem, but the actual library also)

You should have "dot" accessible from command line.

jhysum commented 10 years ago

Thanks that fixed everything. i had both graphr and graphviz gem install and still didn't know why it wasn't working but this makes a lot of sense now.