Giter Club home page Giter Club logo

Comments (9)

kartikey-singh avatar kartikey-singh commented on July 20, 2024 4

I had to manually change in the plots.py
Instead of from sklearn.utils.fixes import signature use from funcsigs import signature

from recmetrics.

nadianingtias avatar nadianingtias commented on July 20, 2024 2

@kartikey-singh thanks for your sharing.
i install funcsigs and replace from sklearn.utils.fixes import signature into from funcsigs import signature in plot.py too.

from recmetrics.

statisticianinstilettos avatar statisticianinstilettos commented on July 20, 2024

Thanks for bringing this to my attention. I just merged an update to use signature from functions instead of the deprecated signature from sklearn.utils.fixes.

from recmetrics.

iainwo avatar iainwo commented on July 20, 2024

@statisticianinstilettos

Hey there! I think there might still be an issue with this. Perhaps in the pip packaging.

The exception that I have thrown in the notebook is:

~/conda_envs/ml-cookiecutter/lib/python3.7/site-packages/recmetrics/__init__.py in <module>
----> 1 from .plots import long_tail_plot, mark_plot, mapk_plot, coverage_plot, class_separation_plot, roc_plot, precision_recall_plot
      2 from .metrics import mark, coverage, personalization, intra_list_similarity, rmse, mse, make_confusion_matrix, recommender_precision, recommender_recall

~/conda_envs/ml-cookiecutter/lib/python3.7/site-packages/recmetrics/plots.py in <module>
      5 from matplotlib.lines import Line2D
      6 from sklearn.metrics import roc_curve, auc, precision_recall_curve, average_precision_score
----> 7 from sklearn.utils.fixes import signature
      8 
      9 

ImportError: cannot import name 'signature' from 'sklearn.utils.fixes' (/home/jovyan/conda_envs/ml-cookiecutter/lib/python3.7/site-packages/sklearn/utils/fixes.py)

The version of the recmetrics package being used is:

$ pip freeze | grep recmetrics
recmetrics==0.0.12

Think the wheel and sdist packages might need to be cleaned and resubbed to pip (maybe they were packaged with old code). Does that make sense? :)

from recmetrics.

rocks6 avatar rocks6 commented on July 20, 2024

Also encountering this problem, same recmetrics version as above

Fixed temporarily by manually applying the changes to plots.py in 1b1e5a3, and then running pip3 install funcsigs

from recmetrics.

anandi1989 avatar anandi1989 commented on July 20, 2024

from funcsigs import signature

It's worked like a charm!

from recmetrics.

kylemcmearty avatar kylemcmearty commented on July 20, 2024

Also had this issue, replacing with from funcsigs import signature worked for me as well.

from recmetrics.

deekshith39 avatar deekshith39 commented on July 20, 2024

yeah, replacing helped

from recmetrics.

henriqueluzz avatar henriqueluzz commented on July 20, 2024

I'm receiving this error and plot.py is already importing from funcsigns.

sklearn==0.24.0
recmetrics=0.1.0

from recmetrics.

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.