Open akhrt01 opened 12 months ago
Your hyperparameter names don't look right. They should be media_A_alpha, _gamma, _theta etc. please read the demo.R guides. Also please make sure you're using the latest version on GitHub
Thank you for your reply. Sorry, I made a mistake when posting the code. Actually, I am writing alpha, gamma, and theta as shown above, which has been modified.
I appreciate your kindness.
We've actually deprecated data.table from Robyn completely. You're installing from CRAN right? You should get rid of this problem if you install from GitHub.
I wanted to get the same results as when I built the model last year, so I used the code "Robyn 3.7.1" that I referenced from the github below around August last year.
https://github.com/facebookexperimental/Robyn/tree/main
I installed it using the code below from RStudio last week. /// install.packages("Robyn") ///
The fact that it is completely deprecated means that unexpected problems may occur when using "data.table".
I'm currently able to output the analysis results without any problems, but would it be better to include them from the source code and re-obtain them from the link below and analyze them?
https://github.com/facebookexperimental/Robyn/blob/main/demo/demo.R
I strongly recommend to use the latest version for future modelling. Backwards compatibility is not always guaranteed.
Let me ask you about an error that occurs when setting hyperparameters in Robyn, "'x' must be numeric.". (I reinstalled Robyn today, so I think the version is 3.10.4. This is an error that did not occur when I used version 3.7.1.)
After entering the hyperparameters as below,
//////// hyperparameters <- list( media_A_alphas = c(0.5, 1), media_A_gammas = c(0.3, 1), media_A_thetas = c(0, 0.05), media_B_alphas = c(0.5, 1), media_B_gammas = c(0.3, 1), media_B_thetas = c(0, 0.2), train_size = c(0.5, 0.8) ) ////////
run "InputCollect <- robyn_inputs(InputCollect = InputCollect, hyperparameters = hyperparameters)". Then the following error occurs.
//////// Error in
mutate()
: ℹ In argument:ds = cut(.data$ds, intervalType)
. Caused by error incut.default()
: ! 'x' must be numeric.Backtrace: ▆
And run "print(InputCollect)", Robyn says"Hyper-parameters: Not set yet". All data is either integer or numeric. And I am converting a date column to date data as below. //////// data$DATE <- as.IDate(data$DATE) ////////
What is the problem with this error and how can I resolve it?