Comments (9)
I am guessing that this is just a .py file that you have to run and use its functions.
I used this code instead of importing the "model_evaluation_utils" and used the functions defined here directly instead:
https://github.com/dipanjanS/practical-machine-learning-with-python/blob/master/notebooks/Ch05_Building_Tuning_and_Deploying_Models/model_evaluation_utils.py
This solved my problem
Thank you so much....... @A5mad
from practical-machine-learning-with-python.
I am guessing that this is just a .py file that you have to run and use its functions.
I used this code instead of importing the "model_evaluation_utils" and used the functions defined here directly instead:
https://github.com/dipanjanS/practical-machine-learning-with-python/blob/master/notebooks/Ch05_Building_Tuning_and_Deploying_Models/model_evaluation_utils.py
This solved my problem
from practical-machine-learning-with-python.
AttributeError: module 'model_evaluation_utils' has no attribute 'display_model_performance_metrics'
the above function is already present in the file but still i am getting that error.
Please help me to resolve this issue.
This is the function that you required from the model_evaluation_utils file:
def display_model_performance_metrics(true_labels, predicted_labels, classes=[1,0]): print('Model Performance metrics:') print('-'*30) get_metrics(true_labels=true_labels, predicted_labels=predicted_labels) print('\nModel Classification report:') print('-'*30) display_classification_report(true_labels=true_labels, predicted_labels=predicted_labels, classes=classes) print('\nPrediction Confusion Matrix:') print('-'*30) display_confusion_matrix(true_labels=true_labels, predicted_labels=predicted_labels, classes=classes)
from practical-machine-learning-with-python.
It's not a publicly available library, there is a model_evaluation_utils.py
file which is imported in the code and used
from practical-machine-learning-with-python.
thanks. I tried to import the file but i am getting this error:
AttributeError: module 'model_evaluation_utils' has no attribute 'display_model_performance_metrics'
from practical-machine-learning-with-python.
Could you please mention more details like which notebook, which folder \ chapter and files you are using, and even show the code causing the error. It is difficult to debug it from just this message because the said function is already present in the file.
from practical-machine-learning-with-python.
AttributeError: module 'model_evaluation_utils' has no attribute 'display_model_performance_metrics'
the above function is already present in the file but still i am getting that error.
Please help me to resolve this issue.
from practical-machine-learning-with-python.
thanks. I tried to import the file but i am getting this error:
AttributeError: module 'model_evaluation_utils' has no attribute 'display_model_performance_metrics'
Is ur error resolved, if so please help me.
from practical-machine-learning-with-python.
hello,
i am a student,
i have gone through your book- 1_Practical Machine Learning with Python_ A Problem-Solver’s Guide to Building Real-World Intelligent Systems
i am learning this chapter
CHAPTER 9
Analyzing Wine Types and Quality
i got stuck at Predictive Modeling task
at this code
import model_evaluation_utils as meu
its looks like you have created this library, if possible will u share with us.
THANK YOU.
MOHAMMED AZMATH
from practical-machine-learning-with-python.
Related Issues (20)
- Showing error while importing arima-Utils ,lstm_utils HOT 3
- expand contractions is not working as expected HOT 1
- Index Error HOT 3
- Error in Accessing Layers of Word Embedding model HOT 1
- Easier way to download "en_vectors_web_lg" model in spacy HOT 1
- Requirements file
- Ch07 use contractions_dict instead of import CONTRACTION_MAP
- Very minor bug in contractions with "ain't"
- Chapter 8 - frequent_itemsets not defined
- Chapter 8 - NameError: name 'OneHot' is not defined
- TypeError: 'NoneType' object is not subscriptable HOT 1
- Chapter 11 - notebook_gold_forecast_arima.ipynb
- Practical machine learning
- Contractions bug HOT 1
- Chapter 9 error Tensorflow AttributeError: 'Sequential' object has no attribute 'predict_class' because predict_class() changed to predict() HOT 1
- Chapter 9 error in Sklearn "DataConversionWarning: A column-vector y was passed when a 1d array was expected. Please change the shape of y to (n_samples, ), for example using ravel(). y = column_or_1d(y, warn=True)" HOT 1
- datasets
- Chapter-3,Visualization using Matplotlib,page-170(Legends)
- Chapter 4 feature engineering numeric data notebook broken on GitHub HOT 1
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 practical-machine-learning-with-python.