Comments (3)
Hey @ankitaash
Did you fit the model with the training dataset?? Maybe that's why it is showing the error.
from scikit-learn.
@ankitaash, could you share complete code. I dont think so calibratedclassifier was saved using dump method. Here is a working code for me:
import pickle
filename = 'calibrated_classifier.pkl'
pickle.dump(calibrated_clf, open(filename, 'wb'))
loaded_classifier = pickle.load(open(filename, 'rb'))
from scikit-learn.
I'm closing this issue because I'm 99% sure that the pickling and unpickling is not done with the same scikit-learn version and thus some internal of the CalibratedClassifierCV
changed in between. You need to use the exact same scikit-learn version for pickling and unpickling.
You can refer to this documentation page: https://scikit-learn.org/dev/model_persistence.html
@ankitaash if this is not the case and you have a minimal reproducer, feel free to share it and I'll reopen the issue.
from scikit-learn.
Related Issues (20)
- Don't refit in FixedThresholdClassifier when original model is already trained. HOT 2
- GridSearchCV.score: support multiple scoring metrics HOT 3
- Broken link at the 1.5.0 release page HOT 1
- Sphinx search summary disappeared from 1.5 website HOT 11
- `GridSearchCV` with custom estimator and nested Parameter Grids raises `ValueError` in scikit-learn 1.5.0 HOT 5
- Fix version warning banner on the stable documentation page HOT 6
- Samples with nan distance are included in the computation of mean in `KNNImputer` for uniform weights HOT 1
- `sklearn.neighbors.NearestNeighbors` allow processing nan values
- DEP loss_function_ attribute in PassiveAggressiveClassifier HOT 2
- RFC Future of HalvingGridSearchCV HOT 3
- Deprecate copy in Birch HOT 1
- Add More Robustness Tests to the California Housing Dataset HOT 2
- Deprecate copy_X in TheilSenRegressor HOT 1
- RFC module location in API table for the API reference page HOT 5
- When a Pipeline step is changed via set_params, the set_output state is cleared HOT 3
- Allow users to override `_fit_and_score` of the BaseSearchCV HOT 1
- problem with convert_sklearn and onnx opset HOT 1
- Incorrect invalid device error introduced in #25956 HOT 6
- ColumnTransformer ignores certain column t HOT 1
- Request to update "Choosing the Right Estimator" Graphic (scikit-learn algorithm cheat sheet) HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scikit-learn.