Giter VIP home page Giter VIP logo

seizure-detection's People

Contributors

michaelhills avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

seizure-detection's Issues

'PyContainer' object has no attribute 'predict_proba'

I tried to run the code, training is ok, but predict.py doesn't work.
I read the hickle.py and checked the container_type inside the classifier, it's "sklearn.ensemble.forest.RandomForestClassifier".
I guess it has the right thing inside the pycontainer, but I cannot figure out why predict_proba is not working.

Traceback (most recent call last):
File "./predict.py", line 6, in
run_seizure_detection('make_predictions')
File "seizure_detection.py", line 179, in run_seizure_detection
train_full_model(make_predictions=True)
File "seizure_detection.py", line 114, in train_full_model
predictions = MakePredictionsTask(task_core).run()
File "seizure/tasks.py", line 25, in run
return self.task_core.cached_data_loader.load(self.filename(), self.load_data)
File "common/data.py", line 42, in load
data = func()
File "seizure/tasks.py", line 121, in load_data
return make_predictions(self.task_core.target, X_test, y_classes, classifier_data)
File "seizure/tasks.py", line 442, in make_predictions
predictions_proba = classifier.predict_proba(X_test)
AttributeError: 'PyContainer' object has no attribute 'predict_proba'

ipdb> pp classifier.container_type
class 'sklearn.ensemble.forest.RandomForestClassifier'>"
ipdb> pp type(classifier[0])
type 'numpy.ndarray'>
ipdb> pp type(classifier)
class 'hickle.PyContainer'>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.