Skip to content

Commit

Permalink
sigma instead of expit
Browse files Browse the repository at this point in the history
  • Loading branch information
erikbern committed May 30, 2018
1 parent 63f6ae0 commit fe213fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions convoys/regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down

0 comments on commit fe213fa

Please sign in to comment.