示例#1
0
 def fit(self, X, y=None):
     self._sklearn_model = SKLModel(**self._hyperparams)
     if (y is not None):
         self._sklearn_model.fit(X, y)
     else:
         self._sklearn_model.fit(X)
     return self
示例#2
0
 def __init__(self, neg_label=0, pos_label=1, sparse_output=False):
     self._hyperparams = {
         'neg_label': neg_label,
         'pos_label': pos_label,
         'sparse_output': sparse_output
     }
     self._wrapped_model = SKLModel(**self._hyperparams)
示例#3
0
 def __init__(self):
     self._hyperparams = {}
     self._wrapped_model = SKLModel(**self._hyperparams)
示例#4
0
 def __init__(self, classes=None, sparse_output=False):
     self._hyperparams = {
         'classes': classes,
         'sparse_output': sparse_output}
     self._wrapped_model = SKLModel(**self._hyperparams)