Neural network regression with the Boston dataset

In this section, we will run a regression neural network for the Boston dataset. The medv value is predicted for the test data. The train to test split is 70:30. The neuralnet function is used to model the data with a neural network:

########################################################################Chapter 2 - Introduction to Neural Networks - using R ###############Simple R program to build, train, test regression neural networks##########################flename: Boston.r################################################################################################library("neuralnet")library(MASS)set.seed(1)data = Bostonmax_data <- apply(data, 2, max) min_data <- apply(data, 2, min) ...

Get Neural Networks 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.