Skip to Content
Practical Predictive Analytics
book

Practical Predictive Analytics

by Ralph Winters
June 2017
Beginner to intermediate
576 pages
15h 22m
English
Packt Publishing
Content preview from Practical Predictive Analytics

Plotting the data

Once the query has completed, issue a display command so that we can perform some visualizations.

        display(result2)
  1. Once the display has run, select the "Plot Options" icon (third icon bottom left), and select a Stacked bar chart plot from the plot menu.
  2. Drag k (counts) to the Values box.
  3. Drag outcome and correct to the Series grouping box.

 

  1. Click Apply to update the visualization:
  • As can be seen from the plot below, The lowest (and best) error for a predictor class was for the non-diabetic patients (bars 1-5, Outcome 0, Prediction N).
  • The highest error can be seen for cases in which diabetes was predicted, but the patient was, in fact, nondiabetic (bars 6-11, Outcome 0, Prediction Y).
  • A critical category, undetected ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Data Superstream: Analytics Engineering

Data Superstream: Analytics Engineering

Alistair Croll, Anna Filippova, Emilie Schario, Lewis Davies, Jacob Frackson, Benn Stancil, Nick Acosta, Elizabeth Caley
R: Predictive Analysis

R: Predictive Analysis

Tony Fischetti, Eric Mayor, Rui Miguel Forte
Python: Advanced Predictive Analytics

Python: Advanced Predictive Analytics

Ashish Kumar, Joseph Babcock

Publisher Resources

ISBN: 9781785886188Supplemental Content