0e8ec93b28ecd86898b3668d48d346f510e95167,pl_examples/domain_templates/computer_vision_fine_tuning.py,TransferLearningModel,training_step,#TransferLearningModel#Any#Any#,260

Before Change



        // 3. Outputs:
        tqdm_dict = {"train_loss": train_loss}
        output = OrderedDict({"loss": train_loss,
                              "num_correct": num_correct,
                              "log": tqdm_dict,
                              "progress_bar": tqdm_dict})

        return output

After Change



        // 2. Compute loss & accuracy:
        train_loss = self.loss(y_logits, y_true)
        accuracy = self.train_acc(y_logits, y_true)

        // 3. Outputs:
        tqdm_dict = {"train_loss": train_loss}
        self.log_dict(tqdm_dict, prog_bar=True)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: williamFalcon/pytorch-lightning
Commit Name: 0e8ec93b28ecd86898b3668d48d346f510e95167
Time: 2021-01-06
Author: jspaezp@users.noreply.github.com
File Name: pl_examples/domain_templates/computer_vision_fine_tuning.py
Class Name: TransferLearningModel
Method Name: training_step


Project Name: mlflow/mlflow
Commit Name: cb480110539e737e3e1537905e69245ceda7a3db
Time: 2021-02-03
Author: 51693147+ankan94@users.noreply.github.com
File Name: tests/pytorch/iris.py
Class Name: IrisClassification
Method Name: training_step


Project Name: williamFalcon/pytorch-lightning
Commit Name: 48718d7ce74f712da881e9585d66a8e0d54e7004
Time: 2021-01-08
Author: thomas@grid.ai
File Name: pl_examples/domain_templates/computer_vision_fine_tuning.py
Class Name: TransferLearningModel
Method Name: training_step