Inspecting Data Science Predictions: Individual + Negative Case Analysis
<p>Somewhere around 40 to 43% of the time when I am showing new learners how to use the <code>.predict()</code> methods I get the following question:</p>
<p><strong>Where are the predictions?</strong></p>
<p>I wish this was a question learners would ask more often. It is an insightful question, especially for folks who are newer to Python, data science, and who may be seeing the <code>.predict()</code> method for the first time.</p>
<p>For sure the number of groups who ask this question is less than half, but possibly, the proportion is lower than 30 or 20%. I don’t keep precise track.</p>
<p>In part one of this deep dive, this article will first show how to build a simple predictive model, second how to generate predictions, and third cover how to inspect predictions more closely.</p>
<p>For part two of this deep dive this article will also show why it is useful to know how to inspect individual predictions plus also why it is necessary to inspect individual predictions. Having the ability to inspect individual predictions opens a range of analytical avenues, for example not the least of which is the negative case analysis.</p>
<h1>Part One: Predict Methods</h1>
<p>If you are not yet familiar with building predictive model I suggest you consider reading one or more other articles that cover this topic. Chapter 11 of <a href="https://a.co/d/hS2cbou" rel="noopener ugc nofollow" target="_blank"><em>Confident Data Science: Discovering The Essential Skills of Data Science</em></a> (by, Me) shows how to build predictive models.</p>
<p>For example, in <a href="https://towardsdatascience.com/fake-birds-machine-learning-acc553312a8f" rel="noopener" target="_blank">Fake Birds & Machine Learning: Using the popular bird variety data to demonstrate nearest neighbors classification</a> I shared code that trained a machine learning model that can predict bird species variety based on a bird’s weight, length, location, and color. This fake birds example demonstrated predictive modeling with the <a href="https://towardsdatascience.com/how-to-make-fictional-data-7a79ce86a350" rel="noopener" target="_blank">fake bird species data</a>.</p>
<p><a href="https://towardsdatascience.com/inspecting-data-science-predictions-individual-negative-case-analysis-d2e4ddbcf830"><strong>Read More</strong></a></p>