f302eba7375d8da3477816a705c7ce628f9a55a8,dytb/trainer/Trainer.py,Trainer,train,#Trainer#,42
Before Change
// General validation summary
metric_value_ = tf.placeholder(tf.float32, shape=())
metric_summary = tf.summary.scalar(
self._model.evaluator.metric["name"], metric_value_)
// read collection after that every op added its own
// summaries in the train_summaries collection
train_summaries = tf.summary.merge(
After Change
train_metric = None
for metric in self._model.evaluator.metrics:
if metric["model_selection"] is not None:
train_metric = metric
else:
tf_log(
tf.summary.scalar(metric["name"], metric["fn"](
predictions, targets)))
if train_metric is None:
print(
"Please specify a metric in the evaluator with "model_selection" not None"
)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: galeone/dynamic-training-bench
Commit Name: f302eba7375d8da3477816a705c7ce628f9a55a8
Time: 2017-05-12
Author: nessuno@nerdz.eu
File Name: dytb/trainer/Trainer.py
Class Name: Trainer
Method Name: train
Project Name: arnomoonens/yarll
Commit Name: 78af940017d99cb339a18fb14e9d8ce9dd574906
Time: 2020-02-10
Author: arno.moonens@gmail.com
File Name: yarll/agents/env_runner.py
Class Name: EnvRunner
Method Name: get_steps
Project Name: wenwei202/iss-rnns
Commit Name: a909fb05f352255c75dec4f4110acab0573f0b64
Time: 2017-06-20
Author: weiwen.web@gmail.com
File Name: basic/model.py
Class Name: Model
Method Name: _build_sparsity