From fe213fa1e4746f4f07d2f25687ae97fe8dff778b Mon Sep 17 00:00:00 2001 From: Erik Bernhardsson Date: Tue, 29 May 2018 23:40:41 -0400 Subject: [PATCH] sigma instead of expit --- convoys/regression.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/convoys/regression.py b/convoys/regression.py index 6c0304e..5bf6f69 100644 --- a/convoys/regression.py +++ b/convoys/regression.py @@ -84,8 +84,8 @@ class GeneralizedGamma(RegressionModel): :math:`P(t) = p\\lambda^{kp} t^{kp-1} \exp(-(x\\lambda)^p) / \\Gamma(k)` Since our goal is to model the conversion rate, we assume the conversion - rate converges to a final value :math:`c = \mathrm{expit}(\mathbf{\\beta^Tx} + b)` - where :math:`\\mathrm{expit}` is the sigmoid function :math:`f(z) = 1/(1+e^{-z})`, + rate converges to a final value :math:`c = \\sigma(\mathbf{\\beta^Tx} + b)` + where :math:`\\sigma(z) = 1/(1+e^{-z})` is the sigmoid function, :math:`\\mathbf{\\beta}` is an unknown vector we are solving for (with corresponding intercept :math:`b`), and :math:`\\mathbf{x}` are the feature vector (inputs).