dipanjanS / practical-machine-learning-with-python

Master the essential skills needed to recognize and solve complex real-world problems with Machine Learning and Deep Learning by leveraging the highly popular Python Machine Learning Eco-system.
Apache License 2.0
2.26k stars 1.64k forks source link

unable to install model_evaluation_utils #18

Open msnir009 opened 5 years ago

msnir009 commented 5 years ago

Hi, I am trying to use your model evaluation package in google colab and I am getting the error as below: !pip install model_evaluation_utils

Collecting model_evaluation_utils ERROR: Could not find a version that satisfies the requirement model_evaluation_utils (from versions: none) ERROR: No matching distribution found for model_evaluation_utils

how can I solve this problem?

Appreciate your reply. Thanks

dipanjanS commented 5 years ago

It's not a publicly available library, there is a model_evaluation_utils.py file which is imported in the code and used

msnir009 commented 5 years ago

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'

dipanjanS commented 5 years ago

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.

VINEESHA5 commented 4 years ago

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.

VINEESHA5 commented 4 years ago

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.

A5mad commented 4 years ago

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

A5mad commented 4 years ago

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)

VINEESHA5 commented 4 years ago

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

azmathmohammed commented 1 year ago

hello, i am a student, i have gone through your book- 1Practical 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 Screenshot 2023-03-08 011605

its looks like you have created this library, if possible will u share with us.

THANK YOU. MOHAMMED AZMATH