-
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
RNN trainr issue #32
Comments
@DimitriF any thoughts? |
I think
|
Thanks @DimitriF it worked! |
But just one more question, what if I wanted to input 3 variables, instead of one? model <- trainr(Y = array(prices$Gold.Price,dim=c(1,nrow(prices))), |
the first dimension is for the number of samples, the second for the number of elements in the sequence and the optional third dimension for the number of variables (if only 2 dimensions, yu have only one variable), so it should look like this:
But I am not sure how |
Hey, just wanted to clarify an issue I was getting. Here's my code: prices <- read.csv('A:\Vasu\Big Data Masters\MRP\Clean Input.csv') prices$Date <- NULL matrix <- cor(prices) convert integer prices to binaryY <- int2bin(prices$Gold.Price) model <- trainr(Y = Y, result <- predictr(model, test) |
|
All below 0.5? There must be another problem then |
Does the input have to be in binary? |
As well the int2bin function doesn't properly convert the integer to binary, it gives a wrong number. |
Not the input, nor the output has to be binary, the binary stuff is simply an example. |
Hello, I am getting an error running the trainr command in the package. Here it is:
Error in if (dim(X)[2] != dim(Y)[2] && !seq_to_seq_unsync) { :
missing value where TRUE/FALSE needed
Even though X and Y are the same length. I have copied the R file with my code:
library(rnn)
library(corrplot)
prices <- read.csv('A:\Vasu\Big Data Masters\MRP\Clean Input.csv')
prices$Date <- NULL
prices$Gold.Price <- as.numeric(gsub(",","", as.character(just_prices$Gold.Price), fixed = TRUE))
prices$DJIA <- as.numeric(gsub(",","", as.character(just_prices$DJIA), fixed = TRUE))
matrix <- cor(prices)
corrplot(matrix, method = "circle")
model <- trainr(Y = array(prices$Gold.Price), X = array(prices$US.Dollar.Index) , learningrate = 0.1,
sigmoid = 'logistic', use_bias = T)
The text was updated successfully, but these errors were encountered: