Skip to content

Instantly share code, notes, and snippets.

@dlazarou
dlazarou / neuralnetR.R
Created March 5, 2016 14:05 — forked from mick001/neuralnetR.R
A neural network exaple in R. Full article at: http://datascienceplus.com/fitting-neural-network-in-r/
# Set a seed
set.seed(500)
library(MASS)
data <- Boston
# Check that no data is missing
apply(data,2,function(x) sum(is.na(x)))
# Train-test random splitting for linear model