Replies: 2 comments
-
Hi @Aminshnn - a few questions here for clarification;
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Duplicate of #1905. The class that method belonged to has been deprecated since 0.9.0. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am watching this video to implement it. However, when I run the following code, I face an error. Are these methods depreciated? What should I use intead?
# Sigmoid results
result_sigmoid = loaded_mmm.optimize_channel_budget_for_maximum_contribution(
method = 'sigmoid', #define saturation function
total_budget = total_budget,
parameters = sigmoid_params,
budget_bounds = budget_bounds
)
Loop to optimize budget allocation
budget_list = []
for total_budget in np.linspace(10_000, 1_000_000, 20):
result_sigmoid = loaded_mmm.optimize_channel_budget_for_maximum_contribution(
method = 'sigmoid',
total_budget = total_budget,
parameters = sigmoid_params,
budget_bounds = {channel: [0, total_budget] for channel in channels}
)
budget_list.append(result_sigmoid.tail(1))
Beta Was this translation helpful? Give feedback.
All reactions