Skip to content
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

How to install specific Dev version Robyn_3.10.4.9000 #814

Open
pierluigi-D-segatto opened this issue Sep 13, 2023 · 2 comments
Open

How to install specific Dev version Robyn_3.10.4.9000 #814

pierluigi-D-segatto opened this issue Sep 13, 2023 · 2 comments
Assignees

Comments

@pierluigi-D-segatto
Copy link

Project Robyn

Describe issue

Since yesterday my container which installs robyn using:
RUN Rscript -e "remotes::install_github('facebookexperimental/Robyn/R');"
Is not working anymore because when training a model or an alocation i get :

Calculating response curves for all models' media variables (840)...
Error in { : task 1 failed - "argument is of length zero"

Provide reproducible example

I run training via:
OutputModels <- robyn_run(
InputCollect = InputCollect, # feed in all model specification
dt_hyper_fixed = NULL, # hyperparams from a previous list
json_file = NULL, #JSON file to import previously exported inputs
ts_validation = ts_validation, # TRUE, Robyn will split data by test, train, and validation partitions to validate the time series.
add_penalty_factor = FALSE,
refresh = FALSE, # Set to TRUE when used in robyn_refresh()
seed = as.integer(sample(1:200, 1)),
outputs = FALSE, # Process results with robyn_outputs()
quiet = FALSE,# shut down verbosity
cores = NULL, # NULL defaults to parallel::detectCores() -1
trials = set_trial,# 5, # Recommended 5 for default nevergrad_algo = "TwoPointsDE".
iterations = set_iter, #2000, # Integer. Recommended 2000 for default when using nevergrad_algo = "TwoPointsDE".
nevergrad_algo = set_hyperOptimAlgo, #"TwoPointsDE", # Options are c("DE","TwoPointsDE", "OnePlusOne", "DoubleFastGADiscreteOnePlusOne", "DiscreteOnePlusOne", "PortfolioDiscreteOnePlusOne", "NaiveTBPSA", "cGA", "RandomSearch").
intercept_sign = "non_negative", #Choose one of "non_negative" (default) or "unconstrained".
)
and getting the output via:
OutputCollect <- robyn_outputs(
InputCollect, OutputModels,
pareto_fronts = "auto", # automatically pick how many pareto-fronts to fill min_candidates

min_candidates = 100, # top pareto models for clustering. Default to 100

calibration_constraint = 0.1, # range c(0.01, 0.1) & default at 0.1

csv_out = "all", # "pareto", "all", or NULL (for none)
clusters = TRUE, # Set to TRUE to cluster similar models by ROAS. See ?robyn_clusters
plot_pareto = TRUE, # Set to FALSE to deactivate plotting and saving model one-pagers
plot_folder = results_path, # path for plots export
plot_folder_sub = '',
export = TRUE, # this will create files locally
refresh=FALSE,
ui=TRUE,
all_sol_json = FALSE
)

Environment & Robyn version

Make sure you're using the latest Robyn version before you post an issue.

  • Check and share Robyn version: packageVersion("Robyn") = Robyn_3.10.4.9000
  • R version (Please, check and share: sessionInfo() or R.version$version.string) R version 4.2.2 (2022-10-31)
@gufengzhou
Copy link
Contributor

This is related to #815 where I just pushed a fix. Please check.

@gufengzhou gufengzhou self-assigned this Sep 13, 2023
@gufengzhou
Copy link
Contributor

The user in #815 has confirmed that it works now. Can you please check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants