Question: For machine learning in python, 1. Are they exactly the same from the picture? 2.Explain what's the picture represents. 3. Use the confusion matrix(the picture
For machine learning in python, 1. Are they exactly the same from the picture?
2.Explain what's the picture represents. 3. Use the confusion matrix(the picture is the result) and explain how it can be used to find wrong predictions.
thanks!
\( \begin{array}{l} \text { In [298]: } \begin{array}{l}\text { Opps_test_predicted=Opps.predict(X_test) } \\ \text { mat = confusion_matrix(y_test,_y_predicted) }\end{array} \\ \text { plt.matshow(mat) } \\ \text { plt.title('Confusion matrix') } \\ \text { plt.ylabel('True label') } \\ \text { plt.xlabel('Predicted label') } \\ \text { plt._oolorbar() } \\ \text { plt.show() }\end{array} \)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
