library(neuralnet)
# creating training data set
TAWKIR=c(20,10,30,20,80,30)
AHMED=c(90,20,40,50,50,80)
Placed=c(1,0,0,0,1,1)
# Here, you will combine multiple columns or features into a single set of data
df=data.frame(TAWKIR,AHMED,Placed)
# load library
require(neuralnet)
# fit neural network
nn=neuralnet(Placed~TAWKIR+AHMED,data=df, hidden=3,act.fct = "logistic",
linear.output = FALSE)
# plot neural network
plot(nn)
0 comments:
Post a Comment