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
290 stars 141 forks source link

Training Machine Model TypeError: 'numpy.float64' object cannot be interpreted as an integer #181

Closed slin02 closed 2 years ago

slin02 commented 2 years ago

Describe the bug Hi, I am trying to use simBA to automate behavioral analysis in rats. I am ready to begin training after the annotation step, but running into a TypeError: object of type <class 'numpy.float64'> cannot be safely interpreted as an integer. I've tried downgrading numpy with no success.

To Reproduce Steps to reproduce the behavior:

  1. loaded in 6 videos and their h5 files. each video has one rat filmed from a side angle
  2. completed outlier correction and feature extraction
  3. moved 2 of the feature extraction files outside of proj folder for later model validation
  4. Under train machine model, saved two settings, one for each classifier
  5. Clicked "train machine models, one for each saved settings"

Screenshots image image

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

slin02 commented 2 years ago

update, no longer getting this error after unchecking "generate sklearn learning curves"

sronilsson commented 2 years ago

Thanks for reporting! I will look into this.