Giter VIP home page Giter VIP logo

frailty's Issues

Hello ๐Ÿ‘‹, there was a problem when running

When I run to the step of Compute FRIGHT age for all animals, an error pops up
image


TypeError Traceback (most recent call last)
in
----> 1 frightControl = frightAge.predict(controlData[frightVariables])
2 frightMr = frightAge.predict(mrData[frightVariables])

~/opt/anaconda3/envs/test_py/lib/python3.6/site-packages/sklearn/ensemble/forest.py in predict(self, X)
679
680 # Assign chunk of trees to jobs
--> 681 n_jobs, _, _ = _partition_estimators(self.n_estimators, self.n_jobs)
682
683 # avoid storing the output of every estimator by summing them here

~/opt/anaconda3/envs/test_py/lib/python3.6/site-packages/sklearn/ensemble/base.py in _partition_estimators(n_estimators, n_jobs)
151 """Private function used to partition estimators between jobs."""
152 # Compute the number of jobs
--> 153 n_jobs = min(_get_n_jobs(n_jobs), n_estimators)
154
155 # Partition estimators between jobs

~/opt/anaconda3/envs/test_py/lib/python3.6/site-packages/sklearn/utils/init.py in _get_n_jobs(n_jobs)
462 ValueError: Parameter n_jobs == 0 has no meaning.
463 """
--> 464 if n_jobs < 0:
465 return max(cpu_count() + 1 + n_jobs, 1)
466 elif n_jobs == 0:

TypeError: '<' not supported between instances of 'NoneType' and 'int'


I hope you can take the time to answer

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.