description: build ANN network from wine data in r language
read table data
1 | wine <- read.table("https://archive.ics.uci.edu/ml/machine-learning-databases/wine/wine.data", |
preview data
1 | print(wine) |
attribute to categorical data
1 | wine$Type=factor(wine$Type) |
data pre-processing and transformation
1 | wine.scale <- cbind(wine[1], scale(wine[-1])) |
partitioning the data into training and test data
1 | data.size <- nrow(wine.scale) |
data mining using a neural Network classification technique
1 | library(nnet) |
pattern (model) evaluation
1 | predicted <- predict(model.nnet, |
Data mining Task using a nearest neighbour approach
1 | P1=c(1,3) |