Giter Site home page Giter Site logo

Comments (6)

albahnsen avatar albahnsen commented on September 8, 2024

yes indeed we need to solve this. if you can do the PR I will appreciated.

from costsensitiveclassification.

BingeCode avatar BingeCode commented on September 8, 2024

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 to import six
  • In .\costcla\models\bagging.py change ALL from sklearn.externals.joblib import to from 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.

BingeCode avatar BingeCode commented on September 8, 2024

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.

albahnsen avatar albahnsen commented on September 8, 2024

@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.

BingeCode avatar BingeCode commented on September 8, 2024

@albahnsen thanks for the heads up. I created the pull request that fixes the aforementioned errors.

from costsensitiveclassification.

albahnsen avatar albahnsen commented on September 8, 2024

Excelent work, thank you so much. I already merged the PR.

from costsensitiveclassification.

Related Issues (20)

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.