title: Caret Package with "nnet" see weight of hidden layer
body: <p>I'm using Caret Package to train a model using the "nnet" method. It's working but i need to see weights used in the hidden layers.
  This is possible when we use the nnet function directly:</p>
  
  <pre><code>model&lt;-nnet(Data[5:8], Data[4],size=10,maxit=100000,linout=T,decay=0.1)     
  model$wts
   [1]  9.160050e-01  1.184379e+00 -1.201645e+00  1.041427e+00 -2.367287e-03  6.861753e+00  1.223522e+00 -1.875841e+01 -1.233203e-02
  [10]  5.281464e-01 -1.605204e+00  1.497933e+00 -2.882815e+00 -1.511277e+01  2.732411e-01 -2.999315e+01  1.498460e-01 -9.405826e-01
  [19] -2.800337e+00  9.600647e-02  1.588405e+00 -2.106175e+00 -8.807753e+00  2.762392e+01  2.091118e-01  3.265564e+01  6.516821e-01
  [28]  1.304455e-01 -7.633166e+00  1.017017e-02  6.366411e+01 -2.902564e-02  1.376147e-01 -8.353788e+00  6.376588e-04  5.995577e+00
  [37]  1.176301e+01 -8.569926e+00  1.971122e+01 -2.358067e-01  3.971781e+01  1.940421e-01  1.755913e-01 -5.817047e+00  1.988909e-03
  [46]  1.408106e+00 -1.549250e+00  1.757245e+01 -5.760102e+01  1.001197e+00 -5.493371e+00  4.786298e+00  6.049659e+00 -1.762611e+01
  [55] -9.598485e+00 -1.716196e+01  6.477683e+00 -1.971476e+01  4.468062e+00  2.125993e+01  4.683170e+01
  </code></pre>
  
  <p>How can i see the weights when using the caret package?</p>
  
  <pre><code>mynnetfit &lt;- train(DC ~ T+c+f+h, data = Data1, method = "nnet", 
      maxit = 1000, tuneGrid = my.grid, trace = T, linout = 1, trControl = ctrl)
  </code></pre>