614393f8ac305d38ed65dda084d86f45a1b465f5,torch_geometric/dataset/qm9.py,QM9,process,#QM9#,43
Before Change
// Add targets to dataset.
with open(self._raw_files[1], "r") as f:
src = [x.split(",")[4:16] for x in f.read().split("\n")[1:-1]]
y = torch.Tensor([[float(y) for y in x] for x in src])
dataset.y = y
slices["y"] = torch.arange(y.size(0) + 1, out=torch.LongTensor())
After Change
// Remove invalid data.
with open(self._raw_files[2], "r") as f:
src = split2d(f.read().split("\n")[9:-2], end=1, out=LongTensor())
split = torch.arange(dataset.y.size(0), out=LongTensor())
split = split[split == split.clone().index_fill_(0, src, -1)]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: rusty1s/pytorch_geometric
Commit Name: 614393f8ac305d38ed65dda084d86f45a1b465f5
Time: 2018-04-25
Author: matthias.fey@tu-dortmund.de
File Name: torch_geometric/dataset/qm9.py
Class Name: QM9
Method Name: process
Project Name: dpressel/mead-baseline
Commit Name: 9a78373369981ad1cf032fbcc0c675498f32967f
Time: 2020-05-01
Author: dpressel@gmail.com
File Name: mead/pytorch/exporters.py
Class Name:
Method Name: create_data_dict
Project Name: mozilla/TTS
Commit Name: 4326582bb1e68480ef79a02abbf4bfacc3aadede
Time: 2019-03-06
Author: egolge@mozilla.com
File Name: datasets/TTSDataset.py
Class Name: MyDataset
Method Name: collate_fn