Take the 2-minute tour ×
Cross Validated is a question and answer site for people interested in statistics, machine learning, data analysis, data mining, and data visualization. It's 100% free, no registration required.

I managed to create neural network of my data. But I am not so sure about the interpretation of the R output. I used following command to create neural network:

> net=nnet(formula = category~iplen+date_time, size=0,skip=T,lineout=T)
# weights:  3
initial  value 136242.000000 
final  value 136242.000000 

Then I used following command to see the output:

    > summary(net)
a 2-0-1 network with 3 weights
options were - skip-layer connections 
 b->o i1->o i2->o 
 0.64 -0.46  0.15

So from the above output Can I can conclude the following diagram of neural network?: net

Second question is how can I know how useful this diagram is? I mean I wanted to find the category number(target variable) from the independent variables. so now how can I decide if this network really helped me to predict the category(target variable)? What is the final output or how to find that?

Can I conclude the following output from the above n-network? :

category= -0.46(iplen)+0.15(date_time)+0.64


share|improve this question

2 Answers 2

up vote 2 down vote accepted

Your interpretation looks correct. You can check it yourself by calling predict on some data and comparing your calculations to predict. I first did this in a spreadsheet, and then I calculated an R neural network using metaprogramming.

By the way, the R package neuralnet draws nice diagrams, but apparently it supports only regression (not classification?).

share|improve this answer
Andrew, Thanks for the reply. One more thing I wanted to discuss that as I got a equation: category=-0.46(iplen)+0.15(date_time)+0.64 from nnet output. now can I compare this with my regression equation that I can create after doing linear regression as follow: lm(category~iplen+date_time) and then linear regression equation will be something like: category=ß1(iplen)+ß2(date_time)+ß0 –  user16603 Nov 30 '12 at 18:23

you can also use the following code for plotting nnet results


#plot each model

reference : https://beckmw.wordpress.com/tag/nnet/

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.