-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sinus example #25
Comments
Hi,- library("rnn") synthetic time serie predictionset.seed(3) Genereate a bias in phasebias_phase <- rnorm(sample_dim) Generate a bias in frequencybias_frequency = runif(sample_dim,min=5,max=25) Generate the noisy time series, cosinus for X and sinus for Y,with a random bias in phase and in frequencyfor(i in seq(sample_dim)){ Normalize between 0 and 1 for the sigmoidX <- (X-min(X))/(max(X)-min(X)) Train the model with all but the 2 last samplesnote: network_type = "rnn" is defaultmodel <- trainr(Y = Y[seq(sample_dim-2),],X = X[seq(sample_dim-2),], # Plot using testing data and predict all sampleslayout(cbind(seq(sample_dim-2),c((sample_dim-1):sample_dim,rep(sample_dim+1,sample_dim-4)))) I am using R3.3.4 under RStudio Version 1.1.383 and WIN10. |
Hi guys,
I'm very interested in running RNN in R, and I think the simplicity of the interface in this package is very appealing. However, I can't seem to get one of your examples working, neither with the CRAN version or the GitHub version.
In the sinus example, the model just predicts an almost flat line at the mean (something that I observed when running a model on my own data as well). I thought the prediction should follow Y to some extent, and so the black and red lines should be somewhat similar.
Am I misunderstanding the purpose of the example?
To clarify, unless I'm missing something, this is a report of a broken example.
The text was updated successfully, but these errors were encountered: