This repository was archived by the owner on Dec 6, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -56,8 +56,6 @@ cdef class ModifiedHuber(LossFunction):
56
56
57
57
cdef class Hinge(LossFunction):
58
58
59
- cdef double threshold
60
-
61
59
def __init__ (self , double threshold = 1.0 ):
62
60
self .threshold = threshold
63
61
@@ -76,8 +74,6 @@ cdef class Hinge(LossFunction):
76
74
77
75
cdef class SmoothHinge(LossFunction):
78
76
79
- cdef double gamma
80
-
81
77
def __init__ (self , double gamma = 1.0 ):
82
78
self .gamma = gamma # the larger, the smoother
83
79
@@ -106,8 +102,6 @@ cdef class SmoothHinge(LossFunction):
106
102
107
103
cdef class SquaredHinge(LossFunction):
108
104
109
- cdef double threshold
110
-
111
105
def __init__ (self , double threshold = 1.0 ):
112
106
self .threshold = threshold
113
107
@@ -156,8 +150,6 @@ cdef class SquaredLoss(LossFunction):
156
150
157
151
cdef class Huber(LossFunction):
158
152
159
- cdef double c
160
-
161
153
def __init__ (self , double c ):
162
154
self .c = c
163
155
@@ -182,8 +174,6 @@ cdef class Huber(LossFunction):
182
174
183
175
cdef class EpsilonInsensitive(LossFunction):
184
176
185
- cdef double epsilon
186
-
187
177
def __init__ (self , double epsilon ):
188
178
self .epsilon = epsilon
189
179
You can’t perform that action at this time.
0 commit comments