Advertisement
Guest User

Untitled

a guest
Oct 4th, 2015
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  1. typedef struct { /* A LAYER OF A NET: */
  2. INT Units; /* - number of units in this layer */
  3. REAL* Output; /* - output of ith unit */
  4. REAL* Error; /* - error term of ith unit */
  5. REAL** Weight; /* - connection weights to ith unit */
  6. REAL** WeightSave; /* - saved weights for stopped training */
  7. REAL** dWeight; /* - last weight deltas for momentum */
  8. } LAYER;
  9.  
  10. typedef struct { /* A NET: */
  11. LAYER** Layer; /* - layers of this net */
  12. LAYER* InputLayer; /* - input layer */
  13. LAYER* OutputLayer; /* - output layer */
  14. REAL Alpha; /* - momentum factor */
  15. REAL Eta; /* - learning rate */
  16. REAL Gain; /* - gain of sigmoid function */
  17. REAL Error; /* - total net error */
  18. } NET;
  19.  
  20. arima(stockadj,order=c(best.model[1],best.model[2],best.model[3]),xreg=1:n)
  21. stockfor<-predict(stockari,h=100,newxreg=(n+1):(n+100))
  22. ts.plot(stockadj,stockfor$pred,ylab="Original+Predicted Values",main="Forecast")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement