Comments (6)
yes indeed we need to solve this. if you can do the PR I will appreciated.
from costsensitiveclassification.
I found the issue and have a fix ready in my cloned repo. I have never contributed to an open source project, though, and was not able to figure out how to push the changes in my local branch '22_incompatible_scikit_learn' or how to create the PR. Seems like I don't have permissions.
It's just a fix of imports in two files.
- In .\costcla\models\cost_tree.py change
from sklearn.externals import six
toimport six
- In .\costcla\models\bagging.py change ALL
from sklearn.externals.joblib import
tofrom joblib import
After this, everything works for me so far, but a FutureWarning persists:
FutureWarning: The sklearn.ensemble.base module is deprecated in version 0.22 and will be removed in version 0.24. The
corresponding classes / functions should instead be imported from sklearn.ensemble.
Anything that cannot be imported from sklearn.ensemble is now part of the private API.
This can be fixed in .\costcla\models\bagging.py change as well by changing from sklearn.ensemble.base import
to from sklearn.ensemble import
Errors unrelated to the imports remain, but that should be looked into by someone more experienced than me :P
Hope this helps others like me who need to use this package for their work / academic studies.
from costsensitiveclassification.
Btw, @albahnsen similar fixes would need to be done in the pyea package, which I could do, if I had the right permissions/knowledge how to push my changes.
from costsensitiveclassification.
@BingeCode thank you so much for the help. to push the changes you can, fork the repository, make the changes to your repository, then on github click on pull request (from your fork or copy of the repository), It is simple after you do it the first time.
Again thank you for the interest in helping with this project.
from costsensitiveclassification.
@albahnsen thanks for the heads up. I created the pull request that fixes the aforementioned errors.
from costsensitiveclassification.
Excelent work, thank you so much. I already merged the PR.
from costsensitiveclassification.
Related Issues (20)
- multiclass classification example?
- Push to PyPi HOT 2
- `load_bankmarketing` no longer works HOT 2
- costcla.model is not working with latest version of sklearn HOT 4
- Update example notebook to work with latest version of sklearn HOT 1
- Update tutorial link in README HOT 1
- I want to draw a cost-sensitive decision tree, but it has an error. HOT 1
- Imbalanced Dataset vs Cost Function HOT 3
- Visualize features being used by CostSensitiveDecisionTreeClassifier HOT 1
- Calculation of cost saving HOT 2
- Cannot use predict_proba with cost matrix ?
- pyea imports
- Problem with imports from pyea HOT 3
- getting error: 'bool' object has no attribute 'astype'
- ModuleNotFoundError HOT 2
- Cost sensitive Decision Tree predict the same value HOT 1
- Imbalanced prediction on obesity datasets using cost sensitive algorithms??
- ModuleNotFoundError: No module named 'sklearn.externals.joblib'
- Add a Conda Forge Package
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 costsensitiveclassification.