Introduction to feedforward neural networks with R

The package h2o comes from the company. With it, you can train several machine learning models, including feedforward neural networks. Although the commands will be passed through the R console, the heavy lift will be done using Java— the h2o package for R is actually an interface.

That said, having Java installed is a requirement. If you are sure about having Java installed, make sure the h2o package is installed too:


Now we need to load the h2o library and initiate the package:

library(h20)h2o.init(nthreads=-1, max_mem_size='2G')

The h2o.init() function will initialize and connect to h2O. The nthreads=-1 argument  will demand all available CPUs' cores to ...

Get Hands-On Data Science with R now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.