Skip to content

Commit

Permalink
Removed prints.
Browse files Browse the repository at this point in the history
  • Loading branch information
rpmcruz committed Feb 15, 2017
1 parent bf80ce5 commit 8b4ca92
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions classification/multiclass/multiordinal.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,10 @@ def fit(self, X, y):
for k in self.classes_[:-1]:
Xpos = X[y > k]
Xneg = X[y <= k]
print('Xpos:', Xpos.shape, 'Xneg:', Xneg.shape)
_X = np.r_[Xpos, Xneg]
_y = np.r_[np.ones(len(Xpos), int), np.zeros(len(Xneg), int)]

C = np.exp(self.alpha * np.abs(y-k-0.5))
print(_y)
print('_X:', _X.shape, '_y:', _y.shape, 'C:', C.shape)
m = clone(self.estimator).fit(_X, _y, sample_weight=C)
self.ensemble.append(m)
return self
Expand Down

0 comments on commit 8b4ca92

Please sign in to comment.