File: stochastic_gradient.py

package info (click to toggle)
scikit-learn 0.11.0-2%2Bdeb7u1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 13,900 kB
  • sloc: python: 34,740; ansic: 8,860; cpp: 8,849; pascal: 230; makefile: 211; sh: 14
file content (15 lines) | stat: -rw-r--r-- 437 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from ...utils import deprecated
from ..stochastic_gradient import SGDClassifier as SGDClassifier_
from ..stochastic_gradient import SGDRegressor as SGDRegressor_


@deprecated("""to be removed in v0.12;
use sklearn.linear_model.SGDClassifier directly""")
class SGDClassifier(SGDClassifier_):
    pass


@deprecated("""to be removed in v0.12;
use sklearn.linear_model.SGDRegressor directly""")
class SGDRegressor(SGDRegressor_):
    pass