scikit-learn/scikit-learn — pull request #1119 by pprett (2012-09-06 09:00:58+00:00)
Title: WIP Sgd clone fix

The SGD* object initialization does not work properly with ``set_params`` and thus ``clone``.

This PR moves input argument parsing and creation of helper classes (e.g. loss_function) to the ``fit`` (actually, ``partial_fit``) methods.

This PR addresses #1114.

The following issues need to be resolved:

- Factory for loss function objects (epsilon issue - see failing test)
- Should we do input argument checks in ``__init__`` or exclusively in ``fit``?
- The sgd holds some opportunities for refactoring (code duplication, etc.)