0722cbb28234dfb6f38c375fed80d339e9921324,snorkel/learning/utils.py,GridSearch,_fit_st,#GridSearch#Any#Any#Any#Any#Any#Any#,410
Before Change
if self.Y_train is not None:
model.train(self.X_train, self.Y_train, **hps)
else:
model.train(self.X_train, **hps)
// Test the model
run_scores = model.score(X_valid, Y_valid, b=b, beta=beta,
set_unlabeled_as_neg=set_unlabeled_as_neg,
After Change
// score printing, best-score checkpointing
// Note: Need to set the save directory since passing in
// (X_dev, Y_dev) will by default trigger checkpoint saving
try:
model.train(*train_args, X_dev=X_valid, Y_dev=Y_valid,
save_dir=self.save_dir, **hps)
except:
model.train(*train_args, **hps)
// Test the model
run_scores = model.score(X_valid, Y_valid, b=b, beta=beta,
set_unlabeled_as_neg=set_unlabeled_as_neg,
batch_size=eval_batch_size)
if model.cardinality > 2:
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances Project Name: snorkel-team/snorkel
Commit Name: 0722cbb28234dfb6f38c375fed80d339e9921324
Time: 2017-08-14
Author: ajratner@gmail.com
File Name: snorkel/learning/utils.py
Class Name: GridSearch
Method Name: _fit_st
Project Name: explosion/thinc
Commit Name: ce0325cb72000af404c2c0b4c3ef1644a66bc0e4
Time: 2016-08-23
Author: honnibal+gh@gmail.com
File Name: examples/mnist.py
Class Name:
Method Name: sequential_sgd
Project Name: pyannote/pyannote-audio
Commit Name: 06278c94dd2e9d572840ee2133f0d9b366effaf8
Time: 2017-10-15
Author: bredin@limsi.fr
File Name: pyannote/audio/applications/feature_extraction.py
Class Name:
Method Name: extract
Project Name: tensorflow/minigo
Commit Name: 6f6b0b30a04d95a26b297c219454bcd51f4f793e
Time: 2018-07-15
Author: andrew.m.jackson@gmail.com
File Name: rl_loop.py
Class Name:
Method Name: train