Repository navigation
[MRG+2] logit -> logistic in plot_logistic.py and minor visual improvements to the plot. - #7730
Merged
Merged
Conversation
Member
|
It's indeed a logistic function. Thanks @Deborah-Digges! Could you also add some labels to the plot (set different colors for the linear regression and logistic regression)? :) |
Member
|
(I'm adding this to 0.18.1 milestone) |
Contributor
Author
|
Sure @raghavrv ! |
Member
|
You could do that in this PR itself. Add an additional commit and push :) |
Contributor
Author
|
Sure. 👍 |
Contributor
Author
|
- Used different colors for logistic and linear plots
- Added legend
- Added ticks to the Axes
@raghavrv Please do review. |
raghavrv
suggested changes
Oct 24, 2016
| plt.ylim(-.25, 1.25) | ||
| plt.xlim(-4, 10) | ||
|
|
||
| plt.legend(('Logistic Curve', 'Least Squares Line'), loc="lower right", |
Member
There was a problem hiding this comment.
Could you label these as
Logistic Regression modelandLinear Regression model
Member
|
Besides the comment, this looks good to me... Thanks! |
Contributor
Author
|
@raghavrv done 👍 |
raghavrv
approved these changes
Oct 24, 2016
Member
|
@agramfort @TomDLT A second look please? |
Member
|
LGTM, waiting for continuous integration then I'll merge |
Member
|
travis fails pep8. |
The function `1 / (1 + np.exp(-x))` is the logistic function. The logit function is the inverse of the logistic function : `log(x/(1-x))`
Contributor
Author
Member
|
thanks @Deborah-Digges 😃 |
amueller
pushed a commit
to amueller/scikit-learn
that referenced
this pull request
Oct 25, 2016
…ements to the plot. (scikit-learn#7730) * Small correction of logit->logistic The function `1 / (1 + np.exp(-x))` is the logistic function. The logit function is the inverse of the logistic function : `log(x/(1-x))` * Add axes ticks, legend and colors to the plot * Fix flake8 errors * Rename legend labels as per review * Fix pep8 error
amueller
pushed a commit
to amueller/scikit-learn
that referenced
this pull request
Oct 27, 2016
…ements to the plot. (scikit-learn#7730) * Small correction of logit->logistic The function `1 / (1 + np.exp(-x))` is the logistic function. The logit function is the inverse of the logistic function : `log(x/(1-x))` * Add axes ticks, legend and colors to the plot * Fix flake8 errors * Rename legend labels as per review * Fix pep8 error
sergeyf
pushed a commit
to sergeyf/scikit-learn
that referenced
this pull request
Feb 28, 2017
…ements to the plot. (scikit-learn#7730) * Small correction of logit->logistic The function `1 / (1 + np.exp(-x))` is the logistic function. The logit function is the inverse of the logistic function : `log(x/(1-x))` * Add axes ticks, legend and colors to the plot * Fix flake8 errors * Rename legend labels as per review * Fix pep8 error
Sundrique
pushed a commit
to Sundrique/scikit-learn
that referenced
this pull request
Jun 14, 2017
…ements to the plot. (scikit-learn#7730) * Small correction of logit->logistic The function `1 / (1 + np.exp(-x))` is the logistic function. The logit function is the inverse of the logistic function : `log(x/(1-x))` * Add axes ticks, legend and colors to the plot * Fix flake8 errors * Rename legend labels as per review * Fix pep8 error
paulha
pushed a commit
to paulha/scikit-learn
that referenced
this pull request
Aug 19, 2017
…ements to the plot. (scikit-learn#7730) * Small correction of logit->logistic The function `1 / (1 + np.exp(-x))` is the logistic function. The logit function is the inverse of the logistic function : `log(x/(1-x))` * Add axes ticks, legend and colors to the plot * Fix flake8 errors * Rename legend labels as per review * Fix pep8 error
maskani-moh
pushed a commit
to maskani-moh/scikit-learn
that referenced
this pull request
Nov 15, 2017
…ements to the plot. (scikit-learn#7730) * Small correction of logit->logistic The function `1 / (1 + np.exp(-x))` is the logistic function. The logit function is the inverse of the logistic function : `log(x/(1-x))` * Add axes ticks, legend and colors to the plot * Fix flake8 errors * Rename legend labels as per review * Fix pep8 error
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Reference Issue
No issue exists for this change currently
What does this implement/fix? Explain your changes.
This is a small fix to documentation, correcting the name of a function.
Any other comments?
The function
1 / (1 + np.exp(-x))is the logistic function.The logit function is the inverse of the logistic function :
log(x/(1-x)). I've corrected this in one of the examples.