Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SGD module renaming #25

Closed
wants to merge 3 commits into from
Closed

SGD module renaming #25

wants to merge 3 commits into from

Conversation

pprett
Copy link
Member

@pprett pprett commented Nov 30, 2010

Finalized the renaming of SGD module.

Moved sgd into linear_model.
Renamed sgd to stochastic_gradient
Renamed ClassifierSGD to SGDClassifier (same for Regressor and Base classes).

Updated examples, docs, and build files.

renamed ClassifierSGD to SGDClassifier (same for Regressor)
updated setup.py files
updated examples
updated docs
@fabianp
Copy link
Member

fabianp commented Dec 1, 2010

Thanks Peter, I'm currently reviewing it ...

@fabianp
Copy link
Member

fabianp commented Dec 1, 2010

My idea was more to merge the sgd into linear_model and rename sgd.py into stochastic_gradient.py rather than add a subpackage stochastic_gradient in linear_model, and I apologize for not making myself clear.

Here's a pull request that does this. This positions gradient_descent.py at the same level as coordinate_descent.py and lars.py, and also puts sparse sgd into linear_model.sparse:

pprett#3

Finally, the import paths for common objects are:

from scikits.learn import linear_model
linear_model.SGDClassifier
linear_model.sparse.SGDClassifier
etc..

@ogrisel
Copy link
Member

ogrisel commented Dec 1, 2010

+1 for fabianp proposal

@pprett
Copy link
Member Author

pprett commented Dec 1, 2010

That sounds reasonable - I'm +1

glouppe pushed a commit to glouppe/scikit-learn that referenced this pull request Jan 27, 2013
jnothman pushed a commit to jnothman/scikit-learn that referenced this pull request Nov 20, 2016
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants