forked from SchattenGenie/mlhep2019_1_phase
-
Notifications
You must be signed in to change notification settings - Fork 0
/
solution.py
executable file
·27 lines (21 loc) · 885 Bytes
/
solution.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/python
#test submissions
import sys
import numpy as np
def main():
input_dir, output_dir = sys.argv[1:]
# how to load data
data_val = np.load(input_dir + '/data_val.npz', allow_pickle=True)
N_val = len(data_val['EnergyDeposit'])
data_test = np.load(input_dir + '/data_test.npz', allow_pickle=True)
N_test = len(data_test['EnergyDeposit'])
# just some random predictions, still valid
np.savez_compressed(output_dir + '/data_val_prediction.npz',
ParticlePoint=np.random.randn(N_val, 2),
ParticleMomentum=np.random.randn(N_val, 2))
np.savez_compressed(output_dir + '/data_test_prediction.npz',
ParticlePoint=np.random.randn(N_test, 2),
ParticleMomentum=np.random.randn(N_test, 2))
return 0
if __name__ == "__main__":
main()