Visualizing prediction results in H2O flow.

448 views
Skip to first unread message

Theyaa Matti

unread,
Jul 11, 2016, 11:41:10 AM7/11/16
to H2O Open Source Scalable Machine Learning - h2ostream
I am new to H2O and I just tried the Airlines Delay Flow. I was able to execute the commands and run the models. But, I would like to view the prediction results with visualizations, like bar charts, plots, and others. Is there a way to view those predictions visually?

Lauren DiPerna

unread,
Jul 11, 2016, 2:46:39 PM7/11/16
to Theyaa Matti, H2O Open Source Scalable Machine Learning - h2ostream
Hi Theyaa,

Flow only provides a specific set of plots in the `Scoring History` section (so unfortunately you can't create customized plots in Flow, though you could do this in python or R for example). For this specific demo four plots were generated (did you see these?).

cheers,

Lauren

On Mon, Jul 11, 2016 at 8:41 AM, Theyaa Matti <theya...@gmail.com> wrote:
I am new to H2O and I just tried the Airlines Delay Flow. I was able to execute the commands and run the models. But, I would like to view the prediction results with visualizations, like bar charts, plots, and others. Is there a way to view those predictions visually?

--
You received this message because you are subscribed to the Google Groups "H2O Open Source Scalable Machine Learning  - h2ostream" group.
To unsubscribe from this group and stop receiving emails from it, send an email to h2ostream+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Lauren DiPerna

unread,
Jul 11, 2016, 6:13:11 PM7/11/16
to Theyaa Matti, H2O Open Source Scalable Machine Learning - h2ostream
Hi Theyaa,

My mistake you can create customized plots in Flow.

To create a plot, select the frame your interested (I'll use "allyears2k.hex" since that's the main frame for the airlines demo, but you can switch this out for whatever frame you are interested in):

click the 'assist me' button (looks like a question mark and is on the top right corner of the menu bar)
  • in the assist cell click on 'getFrames'
  • under 'allyears2k.hex' click on 'Inspect'
  • within the plot cell you could for example:
    • select 'point' from the 'Type' drop down menu
    • select 'min' from the X-Axis drop down menu
    • select 'min' from the Y-Axis drop down menu
    • and then click on the 'Plot' button


Or if you'd just want the cs code (paste the following into a new cell and run):


plot (g) -> g(
  g.point(
    g.position "min", "min"
  )
  g.from inspect "columns", getFrameSummary "allyears2k.hex"
)

you can also get a lot of nice built in plots, after you parse the data:

Within the cell getFrameSummary "allyears2k.hex", under column summaries click on any of the column names and you will see several nice plots

If you want to look at prediction plots, you would need a dataset to predict on (you can do this by splitting the airlines demo data earlier on). Then once you have your prediction frame, you can do

getFrameSummary "the name of your prediction frame"

and then click on the 'predict' column under label.


I realize these steps might be a bit hard to follow, so let me know if you need more help.

cheers,

Lauren



Theyaa Matti

unread,
Jul 12, 2016, 9:51:01 AM7/12/16
to H2O Open Source Scalable Machine Learning - h2ostream
Thank you Lauren for the nice tip, much appreciate it.


Thanks

Theyaa

Theyaa Matti

unread,
Jul 12, 2016, 9:51:01 AM7/12/16
to H2O Open Source Scalable Machine Learning - h2ostream
Reply all
Reply to author
Forward
0 new messages