2be3814a6458e2355e55b5d25f33f8b8536d2d9b,finetune/base.py,BaseModel,finetune,#BaseModel#Any#Any#Any#,104
Before Change
val_input_fn, train_input_fn = self.input_pipeline._get_train_input_fns(Xs, Y, batch_size=batch_size,
val_size=val_size)
train_spec = tf.estimator.TrainSpec(input_fn=train_input_fn)
eval_spec = tf.estimator.EvalSpec(input_fn=val_input_fn)
estimator = self.get_estimator(val_interval=val_interval)
tf.estimator.train_and_evaluate(estimator, train_spec=train_spec,
eval_spec=eval_spec)
def get_estimator(self, val_interval=None, force_build_lm=False):
if self.estimator_ is None or self.input_pipeline.rebuild or force_build_lm:
After Change
// eval_spec = tf.estimator.EvalSpec(input_fn=val_input_fn)
estimator = self.get_estimator(val_interval=val_interval)
estimator.train(input_fn=train_input_fn)
def get_estimator(self, val_interval=None, force_build_lm=False):
if self.estimator_ is None or self.input_pipeline.rebuild or force_build_lm:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances Project Name: IndicoDataSolutions/finetune
Commit Name: 2be3814a6458e2355e55b5d25f33f8b8536d2d9b
Time: 2018-10-04
Author: madison@indico.io
File Name: finetune/base.py
Class Name: BaseModel
Method Name: finetune
Project Name: tensorflow/hub
Commit Name: ea5aef0032eff687bbaeadd7027af11a436c3e77
Time: 2018-06-19
Author: no-reply@google.com
File Name: tensorflow_hub/estimator_test.py
Class Name: EstimatorTest
Method Name: test_latest_module_exporter_with_eval_spec
Project Name: IndicoDataSolutions/finetune
Commit Name: f85b3627e89681eae3b4cb36347a6bd27c39941d
Time: 2018-10-09
Author: benlt@hotmail.co.uk
File Name: finetune/base.py
Class Name: BaseModel
Method Name: finetune