Chapter 4

Introduction to neuralnet and Evaluation Methods

Learning Objectives

By the end of this chapter, you will be able to:

  • Use a neural network to solve a classification problem by using the neuralnet package.
  • Create balanced partitions from a dataset, while decreasing leakage, with the groupdata2 package.
  • Evaluate and select between models using cross-validation.
  • Explain the concept of multiclass classification.

In this chapter, we aim to equip you with a practical understanding of neural networks.


While neural networks have been around in some form since the mid-twentieth century, they have recently surged in popularity. Be it self-driving cars or healthcare technologies, neural networks are fundamental to some of ...

Get Practical Machine Learning with R now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.