Skip to content

Commit

Permalink
Moves _preprocess_data up to Classifier class
Browse files Browse the repository at this point in the history
  • Loading branch information
ajratner committed Dec 29, 2017
1 parent 78aac45 commit 78655e7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 4 additions & 0 deletions snorkel/learning/classifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,10 @@ def error_analysis(self, session, X_test, Y_test,
return s.score(test_marginals, train_marginals=None, b=b,
display=display, set_unlabeled_as_neg=set_unlabeled_as_neg)

def _preprocess_data(self, X):
"""Generic preprocessing subclass; may be called by external methods."""
return X

def save(self):
raise NotImplementedError()

Expand Down
4 changes: 0 additions & 4 deletions snorkel/learning/disc_learning.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,3 @@ def load(self, model_name=None, save_dir='checkpoints', verbose=True):
else:
raise Exception("[{0}] No model found at <{1}>".format(
self.name, model_name))

def _preprocess_data(self, X):
"""Generic preprocessing subclass; may be called by external methods."""
return X

0 comments on commit 78655e7

Please sign in to comment.