Comments (9)
I had to manually change in the plots.py
Instead of from sklearn.utils.fixes import signature
use from funcsigs import signature
from recmetrics.
@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.
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.
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.
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.
from funcsigs import signature
It's worked like a charm!
from recmetrics.
Also had this issue, replacing with from funcsigs import signature
worked for me as well.
from recmetrics.
yeah, replacing helped
from recmetrics.
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)
- ImportError: cannot import name 'signature' HOT 8
- Slows down even if x_labels=False
- module 'recmetrics' has no attribute 'prediction_coverage' HOT 2
- ImportError: cannot import name 'signature'
- Metric: familiarity HOT 1
- Unable to import recmetrics HOT 3
- Cross-referencing other libraries HOT 3
- Is this library actively maintained HOT 1
- Unused Requirement HOT 2
- Installation issues HOT 7
- Personalization metric calculation optimization HOT 1
- personalization() has explosive memory requirements due to pairwise comparison HOT 3
- Coverage over 100% HOT 2
- Integration with Deep Learning Based Frameworks
- Catalog coverage is changed when using the exact same input arguments
- Implement MAP@k HOT 4
- dev dependencies breaking installation
- module 'recmetrics' has no attribute 'mapk'
- any method for AP@k or AP@K calculation? HOT 1
- mapk shouldn't require actual and predicted have the same length HOT 2
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 recmetrics.