4a486c33d7faa7938355658abca7e936022389b0,robosat/tools/train.py,,train,#Any#Any#Any#Any#Any#Any#,120
Before Change
for mask, output in zip(masks, outputs):
prediction = output.detach()
iou.add(mask.float(), prediction.max(0)[1].float())
assert num_samples > 0, "dataset contains training images and labels"
After Change
for mask, output in zip(masks, outputs):
prediction = output.detach()
metrics.add(mask, prediction)
assert num_samples > 0, "dataset contains training images and labels"
return {"loss": running_loss / num_samples, "iou": metrics.get_iou(), "acc": metrics.get_acc()}
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: mapbox/robosat
Commit Name: 4a486c33d7faa7938355658abca7e936022389b0
Time: 2018-10-02
Author: o@courtin.co
File Name: robosat/tools/train.py
Class Name:
Method Name: train
Project Name: ncullen93/torchsample
Commit Name: 943753c968fe7c0cbafc6e44d60f1b28b42e997b
Time: 2017-05-03
Author: ncullen.th@dartmouth.edu
File Name: torchsample/utils.py
Class Name:
Method Name: th_nearest_interp2d
Project Name: mapbox/robosat
Commit Name: 4a486c33d7faa7938355658abca7e936022389b0
Time: 2018-10-02
Author: o@courtin.co
File Name: robosat/tools/train.py
Class Name:
Method Name: validate