SHARE
TWEET

Untitled

a guest Aug 25th, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. gesture.neural.model = read.csv("gesture.training.csv", header=TRUE, sep=" ", quote="\"")
  2. str(gesture.neural.model)
  3.  
  4. max.values = apply(gesture.neural.model, 2, max)
  5. min.values = apply(gesture.neural.model, 2, min)
  6.  
  7. gesture.neural.model.scaled = as.data.frame(scale(gesture.neural.model, center=min.values, scale=max.values - min.values))
  8.  
  9. require(neuralnet)
  10. library(neuralnet)
  11.  
  12. NN = neuralnet(okay ~ PC1 + PC2 + PC3 + PC4 + PC5 + PC6 + PC7 + PC8 + PC9 + PC10, gesture.neural.model.scaled, threshold=0.05, learningrate=0.001, hidden=c(1,3), linear.output=TRUE, startweights=rep(0, 14))
  13. plot(NN)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top