sgoldenlab / simba

SimBA (Simple Behavioral Analysis), a pipeline and GUI for developing supervised behavioral classifiers
https://simba-uw-tf-dev.readthedocs.io/
GNU General Public License v3.0
287 stars 140 forks source link

Issue with graphviz not being recognized #48

Closed emmonseb closed 4 years ago

emmonseb commented 4 years ago

Hi again, @sgoldenlab, I had hoped it would be longer before I pestered you again!

The "Train Machine Model" step ran well for a few minutes before running into the below error:

Screen Shot 2020-07-22 at 5 13 08 PM

Thoughts on how to circumvent this? I did a bit of looking around other forums (not related to SimBA) and found a suggestion that I add Graphviz to the Windows path. Thanks in advance for your help!

sgoldenlab commented 4 years ago

Haha @emmonseb - keep em' coming! :)

To install graphiz, there is a guide that I found useful that you can access through this menu in SimBA:

image

To make sure it's working, you need to add it to the environmental paths in windows, in the same way as (I presume) you have already added FFmpeg to the path. It's not directly part of python, so you can't do a pip install.

To circumvent this issue, you can also untick this box in SimBA to not generate a decision tree visualization using graphviz:

image

emmonseb commented 4 years ago

Thanks @sgoldenlab! I'm trying it without the graphviz requirement for now, and am now getting this exception:

Screen Shot 2020-07-22 at 6 06 50 PM

When this does eventually create a model, where will the .sav file be stored? I looked over the tutorial pretty thoroughly and wasn't able to find the location. Thanks!

sgoldenlab commented 4 years ago

@emmonseb - this error is produced by your settings in this entry box: image

If you have ticked this box, the entry box should become un-greyed out and allow you to insert an integer number ("How many features do you want to display in your feature importance graph?"). It seems like SimBA can't find the integer. Did you enter a value in this box after ticking the tick-box?

emmonseb commented 4 years ago

Wow, talk about a dumb mistake, sorry about that! When I had previously done the settings I had put a number in but overlooked it this time. I'm re-running it now.

Thanks for your patience!

sgoldenlab commented 4 years ago

It's an easy miss to make, I should insert a error message that catches it.