Skip to Content
Neural Networks with R
book

Neural Networks with R

by Balaji Venkateswaran, Giuseppe Ciaburro
September 2017
Beginner to intermediate
270 pages
5h 53m
English
Packt Publishing
Content preview from Neural Networks with R

Simple example using R neural net library - neuralnet()

Consider a simple dataset of a square of numbers, which will be used to train a neuralnet function in R and then test the accuracy of the built neural network:

INPUT

OUTPUT

0

0

1

1

2

4

3

9

4

16

5

25

6

36

7

49

8

64

9

81

10

100

 

Our objective is to set up the weights and bias so that the model can do what is being done here. The output needs to be modeled on a function of input and the function can be used in future to determine the output based on an input:

######################################################################### ###Chapter 1 - Introduction to Neural Networks - using R ################ ###Simple ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Deep Learning with R

Deep Learning with R

J.J. Allaire
Advanced Machine Learning with R

Advanced Machine Learning with R

Cory Lesmeister, Dr. Sunil Kumar Chinnamgari

Publisher Resources

ISBN: 9781788397872Supplemental Content