Learn more  » Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

aaronreidsmith / scikit-learn   python

Repository URL to install this package:

Version: 0.22 

/ linear_model / _sgd_fast.pxd

# License: BSD 3 clause
"""Helper to load LossFunction from sgd_fast.pyx to sag_fast.pyx"""

cdef class LossFunction:
    cdef double loss(self, double p, double y) nogil
    cdef double _dloss(self, double p, double y) nogil


cdef class Regression(LossFunction):
    cdef double loss(self, double p, double y) nogil
    cdef double _dloss(self, double p, double y) nogil


cdef class Classification(LossFunction):
    cdef double loss(self, double p, double y) nogil
    cdef double _dloss(self, double p, double y) nogil


cdef class Log(Classification):
    cdef double loss(self, double p, double y) nogil
    cdef double _dloss(self, double p, double y) nogil


cdef class SquaredLoss(Regression):
    cdef double loss(self, double p, double y) nogil
    cdef double _dloss(self, double p, double y) nogil