444becf00a10f74d6d6c7187798706355ca05612,python/dgl/data/bitcoinotc.py,BitcoinOTC,_load,#BitcoinOTC#Any#,42
Before Change
time_index = np.around(
(data[:, 3] - data[:, 3].min())/delta).astype(np.int64)
for i in range(time_index.max()):
g = DGLGraph()
g.add_nodes(num_nodes)
row_mask = time_index <= i
edges = data[row_mask][:, 0:2]
rate = data[row_mask][:, 2]
g.add_edges(edges[:, 0], edges[:, 1])
g.edata["h"] = rate.reshape(-1, 1)
self.graphs.append(g)
def __getitem__(self, idx):
After Change
row_mask = time_index <= i
edges = data[row_mask][:, 0:2]
rate = data[row_mask][:, 2]
g = convert.graph((edges[:, 0], edges[:, 1]))
g.edata["h"] = rate.reshape(-1, 1)
self.graphs.append(g)
def __getitem__(self, idx):
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 8
Instances
Project Name: dmlc/dgl
Commit Name: 444becf00a10f74d6d6c7187798706355ca05612
Time: 2020-07-30
Author: wmjlyjemaine@gmail.com
File Name: python/dgl/data/bitcoinotc.py
Class Name: BitcoinOTC
Method Name: _load
Project Name: dmlc/dgl
Commit Name: 68a978d4de27b6625870e1ea4242075e990922f4
Time: 2020-07-29
Author: coin2028@hotmail.com
File Name: examples/pytorch/jtnn/jtnn/jtmpn.py
Class Name:
Method Name: mol2dgl_single
Project Name: dmlc/dgl
Commit Name: 68a978d4de27b6625870e1ea4242075e990922f4
Time: 2020-07-29
Author: coin2028@hotmail.com
File Name: examples/pytorch/jtnn/jtnn/mpn.py
Class Name:
Method Name: mol2dgl_single
Project Name: dmlc/dgl
Commit Name: 444becf00a10f74d6d6c7187798706355ca05612
Time: 2020-07-30
Author: wmjlyjemaine@gmail.com
File Name: python/dgl/data/icews18.py
Class Name: ICEWS18
Method Name: _load