Code Monkey home page Code Monkey logo

covid19complications's People

Contributors

farahshamout avatar ghadeer-ghosheh avatar ghadeer-o avatar nasir6 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

covid19complications's Issues

NotFittedError: This LGBMClassifier instance is not fitted yet. Call 'fit' with appropriate arguments before using this estimator.

Traceback (most recent call last):
File "/home/zw/.pycharm_helpers/pydev/pydevd.py", line 1483, in _exec
pydev_imports.execfile(file, globals, locals) # execute the script
File "/home/zw/.pycharm_helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "/home/zw/data/COVID19Complications/code/run.py", line 31, in
models_all, trainsets, classifers = get_models(complications, framework_train, train_columns )
File "/home/zw/data/COVID19Complications/code/train.py", line 165, in get_models
models_all[i] = calibrate(ms[i],vals[i],training_i,train_columns,i)
File "/home/zw/data/COVID19Complications/code/train.py", line 224, in calibrate
clf_calibrated = CalibratedClassifierCV(j, method = "isotonic", cv="prefit").fit(X_val, y_val)
File "/usr/local/anaconda3/envs/zw/lib/python3.6/site-packages/sklearn/calibration.py", line 258, in fit
check_is_fitted(self.base_estimator)
File "/usr/local/anaconda3/envs/zw/lib/python3.6/site-packages/sklearn/utils/validation.py", line 63, in inner_f
return f(*args, **kwargs)
File "/usr/local/anaconda3/envs/zw/lib/python3.6/site-packages/sklearn/utils/validation.py", line 1098, in check_is_fitted
raise NotFittedError(msg % {'name': type(estimator).name})
sklearn.exceptions.NotFittedError: This LGBMClassifier instance is not fitted yet. Call 'fit' with appropriate arguments before using this estimator.

I encountered this bug above; I don't know what something was wrong. Please do me a favour!

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.