|
24 | 24 | * Number of layers: 5-8
|
25 | 25 |
|
26 | 26 | ### Running the baseline implementation
|
27 |
| - |
28 |
| -#### Using virtualenv |
29 |
| -``` |
30 |
| -cd P2B1 |
31 |
| -workon keras |
32 |
| -python p2b1.py |
33 | 27 | ```
|
34 |
| - |
35 |
| -#### Using Spack |
| 28 | +cd Pilot2/2B1 |
| 29 | +python p2b1_baseline_keras1.py |
36 | 30 | ```
|
37 |
| -# Activate all of these tools in the spack python environment |
38 |
| -spack activate ipython |
39 |
| -spack activate py-ipython |
40 |
| -spack activate py-keras |
41 |
| -spack activate py-matplotlib |
42 | 31 |
|
43 |
| -# Load the ipython environment into your path |
44 |
| -module avail |
45 |
| -module load py-ipython-5.1.0-gcc-4.9.3-3y6j6uo |
46 |
| -
|
47 |
| -# Lauch ipython and then run the example |
48 |
| -ipython |
49 |
| -[1]: run p2b1.py |
50 |
| -``` |
| 32 | +The training and test data files will be downloaded the first time this is run and will be cached for future runs. |
51 | 33 |
|
52 | 34 | ### Scaling Options
|
53 | 35 | * ```--case=FULL``` Design autoencoder for data frame with coordinates for all beads
|
54 | 36 | * ```--case=CENTER``` Design autoencoder for data frame with coordinates of the center-of-mass
|
55 | 37 | * ```--case=CENTERZ``` Design autoencoder for data frame with z-coordiate of the center-of-mass
|
56 | 38 |
|
57 |
| -### Expected Results |
| 39 | +### Expected Output |
58 | 40 |
|
59 | 41 | ```
|
60 |
| -$ python p2b1.py |
| 42 | +$ python p2b1_baseline_keras1.py |
61 | 43 | Using Theano backend.
|
62 | 44 | Reading Data Files... 3k_Disordered->3k_run10_10us.35fs-DPPC.10-DOPC.70-CHOL.20.dir
|
63 |
| -Data Format: [Num Sample (2861), Num Molecules (4864), Num Atoms (12), Position + Molecule Tag (One-hot encoded) (6)] |
| 45 | +Data Format: [Num Sample (2861), Num Molecules (3040), Num Atoms (12), Position + Molecule Tag (One-hot encoded) (6)] |
64 | 46 | Define the model and compile
|
65 | 47 | using mlp network
|
66 | 48 | Autoencoder Regression problem
|
67 | 49 | --------------------------------------------------------------------------------------------------------------------
|
68 | 50 | | type | feature size | #Filters | FilterSize | #params | #MACs |
|
69 | 51 | --------------------------------------------------------------------------------------------------------------------
|
70 |
| -| dense | 0x0 | 512 | 01x01 | 2.49 Mill, 9.50 MB ( 46.7%) | 2.49 Mill ( 46.7%) | |
71 |
| -| dense | 0x0 | 256 | 01x01 | 0.13 Mill, 0.50 MB ( 2.5%) | 0.13 Mill ( 2.5%) | |
72 |
| -| dense | 0x0 | 128 | 01x01 | 0.03 Mill, 0.12 MB ( 0.6%) | 0.03 Mill ( 0.6%) | |
| 52 | +| dense | 0x0 | 512 | 01x01 | 1.56 Mill, 5.94 MB ( 45.0%) | 1.56 Mill ( 45.0%) | |
| 53 | +| dense | 0x0 | 256 | 01x01 | 0.13 Mill, 0.50 MB ( 3.8%) | 0.13 Mill ( 3.8%) | |
| 54 | +| dense | 0x0 | 128 | 01x01 | 0.03 Mill, 0.12 MB ( 0.9%) | 0.03 Mill ( 0.9%) | |
73 | 55 | | dense | 0x0 | 64 | 01x01 | 0.01 Mill, 0.03 MB ( 0.2%) | 0.01 Mill ( 0.2%) |
|
74 |
| -| dense | 0x0 | 32 | 01x01 | 0.00 Mill, 0.01 MB ( 0.0%) | 0.00 Mill ( 0.0%) | |
| 56 | +| dense | 0x0 | 32 | 01x01 | 0.00 Mill, 0.01 MB ( 0.1%) | 0.00 Mill ( 0.1%) | |
75 | 57 | | dense | 0x0 | 16 | 01x01 | 0.00 Mill, 0.00 MB ( 0.0%) | 0.00 Mill ( 0.0%) |
|
76 | 58 | | dense | 0x0 | 32 | 01x01 | 0.00 Mill, 0.00 MB ( 0.0%) | 0.00 Mill ( 0.0%) |
|
77 |
| -| dense | 0x0 | 64 | 01x01 | 0.00 Mill, 0.01 MB ( 0.0%) | 0.00 Mill ( 0.0%) | |
| 59 | +| dense | 0x0 | 64 | 01x01 | 0.00 Mill, 0.01 MB ( 0.1%) | 0.00 Mill ( 0.1%) | |
78 | 60 | | dense | 0x0 | 128 | 01x01 | 0.01 Mill, 0.03 MB ( 0.2%) | 0.01 Mill ( 0.2%) |
|
79 |
| -| dense | 0x0 | 256 | 01x01 | 0.03 Mill, 0.12 MB ( 0.6%) | 0.03 Mill ( 0.6%) | |
80 |
| -| dense | 0x0 | 512 | 01x01 | 0.13 Mill, 0.50 MB ( 2.5%) | 0.13 Mill ( 2.5%) | |
81 |
| -| dense | 0x0 | 4864 | 01x01 | 2.49 Mill, 9.50 MB ( 46.7%) | 2.49 Mill ( 46.7%) | |
| 61 | +| dense | 0x0 | 256 | 01x01 | 0.03 Mill, 0.12 MB ( 0.9%) | 0.03 Mill ( 0.9%) | |
| 62 | +| dense | 0x0 | 512 | 01x01 | 0.13 Mill, 0.50 MB ( 3.8%) | 0.13 Mill ( 3.8%) | |
| 63 | +| dense | 0x0 | 3040 | 01x01 | 1.56 Mill, 5.94 MB ( 45.0%) | 1.56 Mill ( 45.0%) | |
82 | 64 | --------------------------------------------------------------------------------------------------------------------
|
83 |
| -|++++++++++++++++++++++++++++++++++++++++++++++++| 5.33 Mill, 20.33 MB ( 100.0%)| 5.33 Mill ( 100.0%) | | |
| 65 | +|++++++++++++++++++++++++++++++++++++++++++++++++| 3.46 Mill, 13.21 MB ( 100.0%)| 3.46 Mill ( 100.0%) | | |
84 | 66 | --------------------------------------------------------------------------------------------------------------------
|
85 |
| -... |
86 |
| -Loss on epoch 0: 12.2727 |
87 |
| - 33%|------------------------------------| | 1/3 [00:28<00:57, 28.79s/it] |
88 |
| -Loss on epoch 1: 11.5519 |
89 |
| - 67%|---------------------------------------------------------------| | 2/3 [00:53<00:27, 27.44s/it] |
90 |
| -Loss on epoch 2: 11.3828 |
91 |
| -100%|----------------------------------------------------------------------------------------------------------| 3/3 [01:17<00:00, 26.53s/it] |
| 67 | + 0%| | 0/3 [00:00<?, ?it/s] |
| 68 | +../Data/common/3k_run10_10us.35fs-DPPC.10-DOPC.70-CHOL.20.dir/3k_run10_10us.35fs-DPPC.10-DOPC.70-CHOL.20_chunk_01_outof_29.npy |
| 69 | +../Data/common/3k_run10_10us.35fs-DPPC.10-DOPC.70-CHOL.20.dir/3k_run10_10us.35fs-DPPC.10-DOPC.70-CHOL.20_chunk_02_outof_29.npy |
| 70 | +../Data/common/3k_run10_10us.35fs-DPPC.10-DOPC.70-CHOL.20.dir/3k_run10_10us.35fs-DPPC.10-DOPC.70-CHOL.20_chunk_03_outof_29.npy |
| 71 | +../Data/common/3k_run10_10us.35fs-DPPC.10-DOPC.70-CHOL.20.dir/3k_run10_10us.35fs-DPPC.10-DOPC.70-CHOL.20_chunk_04_outof_29.npy |
| 72 | +../Data/common/3k_run10_10us.35fs-DPPC.10-DOPC.70-CHOL.20.dir/3k_run10_10us.35fs-DPPC.10-DOPC.70-CHOL.20_chunk_05_outof_29.npy |
| 73 | +../Data/common/3k_run10_10us.35fs-DPPC.10-DOPC.70-CHOL.20.dir/3k_run10_10us.35fs-DPPC.10-DOPC.70-CHOL.20_chunk_06_outof_29.npy |
| 74 | +../Data/common/3k_run10_10us.35fs-DPPC.10-DOPC.70-CHOL.20.dir/3k_run10_10us.35fs-DPPC.10-DOPC.70-CHOL.20_chunk_07_outof_29.npy |
| 75 | +../Data/common/3k_run10_10us.35fs-DPPC.10-DOPC.70-CHOL.20.dir/3k_run10_10us.35fs-DPPC.10-DOPC.70-CHOL.20_chunk_08_outof_29.npy |
| 76 | +../Data/common/3k_run10_10us.35fs-DPPC.10-DOPC.70-CHOL.20.dir/3k_run10_10us.35fs-DPPC.10-DOPC.70-CHOL.20_chunk_09_outof_29.npy |
| 77 | +../Data/common/3k_run10_10us.35fs-DPPC.10-DOPC.70-CHOL.20.dir/3k_run10_10us.35fs-DPPC.10-DOPC.70-CHOL.20_chunk_10_outof_29.npy |
| 78 | +../Data/common/3k_run10_10us.35fs-DPPC.10-DOPC.70-CHOL.20.dir/3k_run10_10us.35fs-DPPC.10-DOPC.70-CHOL.20_chunk_11_outof_29.npy |
| 79 | +../Data/common/3k_run10_10us.35fs-DPPC.10-DOPC.70-CHOL.20.dir/3k_run10_10us.35fs-DPPC.10-DOPC.70-CHOL.20_chunk_12_outof_29.npy |
| 80 | +../Data/common/3k_run10_10us.35fs-DPPC.10-DOPC.70-CHOL.20.dir/3k_run10_10us.35fs-DPPC.10-DOPC.70-CHOL.20_chunk_13_outof_29.npy |
| 81 | +../Data/common/3k_run10_10us.35fs-DPPC.10-DOPC.70-CHOL.20.dir/3k_run10_10us.35fs-DPPC.10-DOPC.70-CHOL.20_chunk_14_outof_29.npy |
| 82 | +../Data/common/3k_run10_10us.35fs-DPPC.10-DOPC.70-CHOL.20.dir/3k_run10_10us.35fs-DPPC.10-DOPC.70-CHOL.20_chunk_15_outof_29.npy |
| 83 | +../Data/common/3k_run10_10us.35fs-DPPC.10-DOPC.70-CHOL.20.dir/3k_run10_10us.35fs-DPPC.10-DOPC.70-CHOL.20_chunk_16_outof_29.npy |
| 84 | +../Data/common/3k_run10_10us.35fs-DPPC.10-DOPC.70-CHOL.20.dir/3k_run10_10us.35fs-DPPC.10-DOPC.70-CHOL.20_chunk_17_outof_29.npy |
| 85 | +../Data/common/3k_run10_10us.35fs-DPPC.10-DOPC.70-CHOL.20.dir/3k_run10_10us.35fs-DPPC.10-DOPC.70-CHOL.20_chunk_18_outof_29.npy |
| 86 | +../Data/common/3k_run10_10us.35fs-DPPC.10-DOPC.70-CHOL.20.dir/3k_run10_10us.35fs-DPPC.10-DOPC.70-CHOL.20_chunk_19_outof_29.npy |
| 87 | +../Data/common/3k_run10_10us.35fs-DPPC.10-DOPC.70-CHOL.20.dir/3k_run10_10us.35fs-DPPC.10-DOPC.70-CHOL.20_chunk_20_outof_29.npy |
| 88 | +../Data/common/3k_run10_10us.35fs-DPPC.10-DOPC.70-CHOL.20.dir/3k_run10_10us.35fs-DPPC.10-DOPC.70-CHOL.20_chunk_21_outof_29.npy |
| 89 | +../Data/common/3k_run10_10us.35fs-DPPC.10-DOPC.70-CHOL.20.dir/3k_run10_10us.35fs-DPPC.10-DOPC.70-CHOL.20_chunk_22_outof_29.npy |
| 90 | +../Data/common/3k_run10_10us.35fs-DPPC.10-DOPC.70-CHOL.20.dir/3k_run10_10us.35fs-DPPC.10-DOPC.70-CHOL.20_chunk_23_outof_29.npy |
| 91 | +../Data/common/3k_run10_10us.35fs-DPPC.10-DOPC.70-CHOL.20.dir/3k_run10_10us.35fs-DPPC.10-DOPC.70-CHOL.20_chunk_24_outof_29.npy |
| 92 | +../Data/common/3k_run10_10us.35fs-DPPC.10-DOPC.70-CHOL.20.dir/3k_run10_10us.35fs-DPPC.10-DOPC.70-CHOL.20_chunk_25_outof_29.npy |
| 93 | +../Data/common/3k_run10_10us.35fs-DPPC.10-DOPC.70-CHOL.20.dir/3k_run10_10us.35fs-DPPC.10-DOPC.70-CHOL.20_chunk_26_outof_29.npy |
| 94 | +../Data/common/3k_run10_10us.35fs-DPPC.10-DOPC.70-CHOL.20.dir/3k_run10_10us.35fs-DPPC.10-DOPC.70-CHOL.20_chunk_27_outof_29.npy |
| 95 | +../Data/common/3k_run10_10us.35fs-DPPC.10-DOPC.70-CHOL.20.dir/3k_run10_10us.35fs-DPPC.10-DOPC.70-CHOL.20_chunk_28_outof_29.npy |
| 96 | +../Data/common/3k_run10_10us.35fs-DPPC.10-DOPC.70-CHOL.20.dir/3k_run10_10us.35fs-DPPC.10-DOPC.70-CHOL.20_chunk_29_outof_29.npy |
| 97 | +
|
| 98 | +Loss on epoch 0: 18.1642 |
| 99 | + 33%|------------------------------------| | 1/3 [00:22<00:44, 22.09s/it] |
| 100 | +Loss on epoch 1: 17.4444 |
| 101 | + 67%|---------------------------------------------------------------| | 2/3 [00:37<00:19, 19.96s/it] |
| 102 | +Loss on epoch 2: 17.5339 |
| 103 | +100%|----------------------------------------------------------------------------------------------------------| 3/3 [00:51<00:00, 18.40s/it] |
92 | 104 | Cooling Learning Rate by factor of 10...
|
93 | 105 | 0%| | 0/3 [00:00<?, ?it/s]
|
94 |
| -Loss on epoch 0: 10.2965 |
95 |
| - 33%|------------------------------------| | 1/3 [00:24<00:48, 24.49s/it] |
96 |
| -Loss on epoch 1: 10.3103 |
97 |
| - 67%|---------------------------------------------------------------| | 2/3 [00:49<00:24, 24.71s/it] |
98 |
| -Loss on epoch 2: 10.3181 |
99 |
| -100%|----------------------------------------------------------------------------------------------------------| 3/3 [01:13<00:00, 24.58s/it] |
| 106 | +Loss on epoch 0: 15.2757 |
| 107 | + 33%|------------------------------------| | 1/3 [00:15<00:31, 15.71s/it] |
| 108 | +Loss on epoch 1: 15.3096 |
| 109 | + 67%|---------------------------------------------------------------| | 2/3 [00:30<00:15, 15.44s/it] |
| 110 | +Loss on epoch 2: 15.3504 |
| 111 | +100%|----------------------------------------------------------------------------------------------------------| 3/3 [00:45<00:00, 15.44s/it] |
100 | 112 | Cooling Learning Rate by factor of 10...
|
101 | 113 | 0%| | 0/3 [00:00<?, ?it/s]
|
102 |
| -Loss on epoch 0: 9.9807 |
103 |
| - 33%|------------------------------------| | 1/3 [00:24<00:48, 24.45s/it] |
104 |
| -Loss on epoch 1: 10.0237 |
105 |
| - 67%|---------------------------------------------------------------| | 2/3 [00:48<00:24, 24.47s/it] |
106 |
| -Loss on epoch 2: 10.0357 |
107 |
| -100%|----------------------------------------------------------------------------------------------------------| 3/3 [01:14<00:00, 24.73s/it] |
| 114 | +Loss on epoch 0: 14.8456 |
| 115 | + 33%|------------------------------------| | 1/3 [00:15<00:30, 15.09s/it] |
| 116 | +Loss on epoch 1: 14.8246 |
| 117 | + 67%|---------------------------------------------------------------| | 2/3 [00:30<00:15, 15.32s/it] |
| 118 | +Loss on epoch 2: 14.8405 |
| 119 | +100%|----------------------------------------------------------------------------------------------------------| 3/3 [00:47<00:00, 15.66s/it] |
108 | 120 | ```
|
0 commit comments