Data Science, Causal Inference, Machine Learning, Optimization, Notes From Industry.
michaelis_menten(x, alpha, lam): return alpha * x / (lam + x) We can then use curve_fit to learn the alpha and lambda parameters: def response_curves(treatment_effect, df_scoring): maxfev = 100000 lam_initial_estimate = 0.001 alpha_initial_estimate = max(treatment_effect) initial_guess =