Python Machine Learning Is The Complete Guide To Everything You Need To Know About Python Machine Learning: Keras, Numpy, Scikit Learn, Tensorflow, With Useful Exercises and examples. by Myers Erick
Author:Myers, Erick [Myers, Erick]
Language: eng
Format: epub
Published: 2019-07-04T16:00:00+00:00
Confusion Matrix Review: Classification Report
We can see some more statistic reports to find model Accuracy through the Confusion Matrix. We will also see how to find out the formula, along with the built-in cykit's built-in function.
Generation of classification report is actually above the Confusion Matrices data. To view the classification report, run the following statement,
print ("Classification Report")
# labels for set 1 = True to upper left and 0 = False to lower right
print ("{0}" format (metrics.classification_report (y_test, prediction_from_test_data, labels = [1, 0])))
Report output
Classification Report
precision recall f1-score support
1 0.61 0.65 0.63 80
0 0.81 0.78 0.79 151
avg / total 0.74 0.74 0.74 231
Here we will discuss with two topics; one is Precision and another is Recall
Precision Finding Formula
$$ Precision = \ frac {TP} {TP + FP} $$
That is, we know for the perfect condition, FP = 0, so 100% of Accurate Model
$$ Precision = \ frac {TP} {TP + 0} = \ frac {TP} {TP} = 1 $$ means that the value of Precision is as good as possible. Our target would be to make Precision's value as big as possible. ##### `Recall` exit form $$ recall = \ frac {TP} {TP + FN} $$
Similarly, in the case of 100% Accurate Model
$$ recall = \ frac {TP} {TP + 0} = \ frac {TP} {TP} = 1 $$
Again, we have the goal of increasing the value of Recall as much as possible.
Precision - 0.61 & Recall - 0.65 Not bad, but its value can be increased further. We will make that effort.
How to Improve Performance?
We can increase the performance of the model through the following methods
Adjust or modify that algorithm
Collecting more data or improving data frame
Try to Improve Training
Algorithm Changed
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Ada | Ajax |
Assembly Language Programming | Borland Delphi |
C & C++ | C# |
CSS | Compiler Design |
Compilers | DHTML |
Debugging | Delphi |
Fortran | Java |
Lisp | Perl |
Prolog | Python |
RPG | Ruby |
Swift | Visual Basic |
XHTML | XML |
XSL |
Hello! Python by Anthony Briggs(9901)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(9781)
The Mikado Method by Ola Ellnestam Daniel Brolund(9766)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(8278)
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(7769)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(7754)
Grails in Action by Glen Smith Peter Ledbrook(7683)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(7548)
Windows APT Warfare by Sheng-Hao Ma(6736)
Layered Design for Ruby on Rails Applications by Vladimir Dementyev(6468)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(6397)
Blueprints Visual Scripting for Unreal Engine 5 - Third Edition by Marcos Romero & Brenden Sewell(6338)
Kotlin in Action by Dmitry Jemerov(5046)
Hands-On Full-Stack Web Development with GraphQL and React by Sebastian Grebe(4312)
Functional Programming in JavaScript by Mantyla Dan(4035)
Solidity Programming Essentials by Ritesh Modi(3954)
WordPress Plugin Development Cookbook by Yannick Lefebvre(3743)
Unity 3D Game Development by Anthony Davis & Travis Baptiste & Russell Craig & Ryan Stunkel(3684)
The Ultimate iOS Interview Playbook by Avi Tsadok(3656)
