O'Reilly logo

Practical Predictive Analytics by Ralph Winters

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required