415be78cc0d1275a29d0ceda550d0d7a7a5224ea,python/ray/util/sgd/torch/training_operator.py,TrainingOperator,train_epoch,#TrainingOperator#Any#Any#,120
Before Change
postfix.update(loss=metrics["train_loss"])
_progress_bar.set_postfix(postfix)
if self.scheduler and batch_info.get(
SCHEDULER_STEP) == SCHEDULER_STEP_BATCH:
self.scheduler.step()
metric_meters.update(metrics, n=metrics.pop(NUM_SAMPLES, 1))
After Change
Returns:
A dict of metrics from training.
if not hasattr(self, "model"):
raise RuntimeError("Either set self.model in setup function or "
"override this method to implement a custom "
"training loop.")
model = self.model
scheduler = None
if hasattr(self, "scheduler"):
scheduler = self.scheduler
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances
Project Name: ray-project/ray
Commit Name: 415be78cc0d1275a29d0ceda550d0d7a7a5224ea
Time: 2020-09-08
Author: amogkam@users.noreply.github.com
File Name: python/ray/util/sgd/torch/training_operator.py
Class Name: TrainingOperator
Method Name: train_epoch
Project Name: AlexEMG/DeepLabCut
Commit Name: 390d6560c6873526218606c254627f52898c700d
Time: 2020-08-19
Author: 30733203+jeylau@users.noreply.github.com
File Name: deeplabcut/pose_estimation_3d/plotting3D.py
Class Name:
Method Name: plot2D
Project Name: NifTK/NiftyNet
Commit Name: 0c33c55049a22bcf38120a5ccf1ffcbd6bb25127
Time: 2017-08-18
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/utilities/user_parameters_helper.py
Class Name:
Method Name: check_required_sections
Project Name: ray-project/ray
Commit Name: 28ab797cf51f35222d1ac0e8a4ca8a5f153a9326
Time: 2020-09-06
Author: sven@anyscale.io
File Name: rllib/models/catalog.py
Class Name: ModelCatalog
Method Name: get_model_v2