Comments (2)
It worked, makes sense that channel_constr_low should be a vector.
Thanks Leo!
from robyn.
Hey Fede,
Hope you are well and thanks for trying our code. Let me show you a best practice example so that you copy it on your end:
model_output_collect$allSolutions
optim_result <- f.budgetAllocator(modID = "2_16_3" # input one of the model IDs in model_output_collect$allSolutions to get optimisation result
,scenario = "max_historical_response" # c(max_historical_response, max_response_expected_spend)
#,expected_spend = 100000 # specify future spend volume. only applies when scenario = "max_response_expected_spend"
#,expected_spend_days = 90 # specify period for the future spend volumne in days. only applies when scenario = "max_response_expected_spend"
,channel_constr_low = c(0.25, 0.25, 0.25, 0.25, 0.25, 0.25) # must be between 0.01-1 and has same length and order as set_mediaVarName
,channel_constr_up = c(3, 3, 3, 3, 3, 3) # not recommended to 'exaggerate' upper bounds. 1.5 means channel budget can increase to 150% of current level
)
Please note to just comment the lines with '#' for expected_spend and expected_spend_days as well as, putting one channel_constr_low and one channel_constr_up per each channel involved. In the example above we have 6 channels to assess.
Names is used basically to see if the number of channels listed in the optimization actually match the ones that are used in the budget allocator.
Let me know if that works,
Hope it helps!
Thanks,
Leo
from robyn.
Related Issues (20)
- Error: unexpected symbol in: date_var
- Error in UseMethod("mutate") & Error in robyn_outputs(InputCollect, OutputModels, pareto_fronts = "auto" HOT 1
- Immedaite vs Carryover Response and bootstrapped ROl Plots HOT 1
- Zero Spend Channels Included in Allocator HOT 6
- Adjusted R2 for test data should not be used HOT 1
- Error in check_hyper_limits(hyperparameters_ordered, "thetas") HOT 3
- Why spend shares % from the one pager do not match with the Initial Avg. Spend Shares % that we get from the budget allocator? HOT 2
- Channels with Coefficients of 0 in the Budget Allocator HOT 2
- Grps instead of the spent HOT 1
- Error Running Demo.R with test dataset: Error in signif(nevergrad_hp_val[[co]][index], 6): non-numeric argument to mathematical function HOT 6
- Are spend variables that are mostly 0 (i.e. rare spends) okay to use in Robyn? HOT 9
- Different NRMSE calculations for train vs val/test HOT 3
- Robyn Allocator failure HOT 4
- Prophet results issue HOT 2
- Training Split results in poorer models HOT 1
- Robyn is not working in Databricks HOT 4
- Robyn error while running OutputModels <- code - Error in task 7 failed - "arguments imply differing number of rows: 7, 9" HOT 1
- rssd_zero_penalty = TRUE ; is this the default setting? HOT 1
- Optimizer Used for Budget Allocator HOT 3
- robyn_refresh "Error: ValueError: zero-size array to reduction operation minimum which has no identity" HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from robyn.