Subject | Hash | Author | Date (UTC) |
---|---|---|---|
simslope0_py: removed some temp modifications. | 8c1ba7cfd7d75672e0dc38e2e4abc17b8dd62da9 | Josiah_Mullins_E6440 | 2019-12-06 18:30:28 |
simslope0_py: modified print statements | 792110c3c83aa8ff78f7bf87ec8c01a4eacc94c7 | Josiah_Mullins_E6440 | 2019-12-06 18:29:16 |
simslope0_py: optimization? | 06c5626d1f26185d4f0da6bb535547228b198eab | Josiah_Mullins_E6440 | 2019-12-06 18:21:34 |
simslope0_py: filename and exit | dca5feb38bc896c2742e23da245c49e5c80ef30f | Josiah_Mullins_E6440 | 2019-12-06 17:50:04 |
simslope_c: Output to file | f8c52e106738ec13223144579d2b74aa0d290ade | Josiah_Mullins_E6440 | 2019-12-06 17:41:09 |
simslope.c: type change | 707e5be5af137023c28c12d54af35394cc32c9cc | Josiah_Mullins_Optiplex_Mini | 2019-12-01 22:21:44 |
Indentation | 8606ab9f5e9d3b01f698a3303f5e6d39418b7bd5 | Josiah_Mullins_Optiplex_Mini | 2019-12-01 21:41:16 |
Simslope Initial commit. | e9ccd3d49b4b1342341f1866a3f7a941af503b30 | Josiah_Mullins_Optiplex_Mini | 2019-12-01 21:24:04 |
File | Lines added | Lines deleted |
---|---|---|
00_simslope/simslope0.py | 2 | 4 |
File 00_simslope/simslope0.py changed (mode: 100644) (index d7ebf1d..a681dfc) | |||
10 | 10 | # | # |
11 | 11 | ||
12 | 12 | # TensorFlow, keras, numpy | # TensorFlow, keras, numpy |
13 | #import tensorflow as tf | ||
14 | #from tensorflow import keras | ||
13 | import tensorflow as tf | ||
14 | from tensorflow import keras | ||
15 | 15 | import numpy as np | import numpy as np |
16 | import sys | ||
17 | 16 | ||
18 | 17 | # open file | # open file |
19 | 18 | f=open('simslope.dat','r') | f=open('simslope.dat','r') |
... | ... | data=np.array(normdata) | |
52 | 51 | ||
53 | 52 | print("data has shape", data.shape) | print("data has shape", data.shape) |
54 | 53 | print("classes has shape ", classes.shape) | print("classes has shape ", classes.shape) |
55 | sys.exit() | ||
56 | 54 | # convert classes to one hot vectors (each vector position is a class) | # convert classes to one hot vectors (each vector position is a class) |
57 | 55 | # don't need this, but left it in here in case I ever do | # don't need this, but left it in here in case I ever do |
58 | 56 | # i.e. convert classes like 1 2 3 4 to [1 0 0 0] [0 1 0 0] [0 0 1 0] [0 0 0 1] | # i.e. convert classes like 1 2 3 4 to [1 0 0 0] [0 1 0 0] [0 0 1 0] [0 0 0 1] |