File size: 488 Bytes
6701016
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import numpy as np
import pandas as pd

year = '2017'  # please specify the year, our experiments use 2019

gba_his = pd.read_hdf('gba_his_' + year +'.h5')
value = gba_his.values
value = value[:(31+28)*288, :]
print(value.shape, value[value==0].shape)

# np.savez('CA_District5.npz', data=value)
datas = np.load('CA_District5.npz')
print(datas.files)
print(datas['data'])
print(datas['data'].shape)

adj = np.load('gba_rn_adj.npy')
print(adj)
print(adj.shape, adj.dtype)