Skip to content

Commit

Permalink
🐛 fix error in golden features, add better subsampling (#201)
Browse files Browse the repository at this point in the history
  • Loading branch information
pplonski committed Sep 21, 2020
1 parent 1edf319 commit ce85f8d
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions supervised/preprocessing/goldenfeatures_transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,16 +250,4 @@ def _subsample(self, X, y):
X, y, train_size=train_size, shuffle=shuffle, stratify=stratify
)

"""
middle, stop = 2500, 5000
if X.shape[0] < 5000:
stop = X.shape[0]
middle = int(stop / 2)
X_train = X[:middle]
X_test = X[middle:stop]
y_train = y[:middle]
y_test = y[middle:stop]
"""

return X_train, X_test, y_train, y_test

0 comments on commit ce85f8d

Please sign in to comment.