List of commits:
Subject Hash Author Date (UTC)
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
Commit 06c5626d1f26185d4f0da6bb535547228b198eab - simslope0_py: optimization?
Changed the data allocation from .append to pre-allocation.
Changed the redundant float() function calls in second
nested for to be converted in the first loop instead
of in the second.
Author: Josiah_Mullins_E6440
Author date (UTC): 2019-12-06 18:21
Committer name: Josiah_Mullins_E6440
Committer date (UTC): 2019-12-06 18:21
Parent(s): dca5feb38bc896c2742e23da245c49e5c80ef30f
Signing key:
Tree: 790baa451b1a6b2f4cb15f3cbe4e65778d3e8840
File Lines added Lines deleted
00_simslope/simslope0.py 17 22
File 00_simslope/simslope0.py changed (mode: 100644) (index 6aebf31..47a2474)
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 16 #To allow premature exit. #To allow premature exit.
17 17 import sys import sys
 
... ... f.close()
24 24 # copy to classes and data. # copy to classes and data.
25 25 #classes contains the slope data. #classes contains the slope data.
26 26 #data contains the point data. #data contains the point data.
27 classes=[]
28 data=[]
27 classes=[None]*len(d)
28 data=[[None]*(len(d[0])-1) for i in range(len(d))]
29 29
30 30 #This loop extracts the relevant data from d. #This loop extracts the relevant data from d.
31 31 for a in range(0,len(d)): for a in range(0,len(d)):
32 classes.append(d[a][0])
33 row=[]
34 for b in range(1,len(d[a])):
35 row.append(d[a][b])
36 data.append(row)
32 classes[a] = d[a][0]
33 for b in range(1,len(d[a])):
34 data[a][b-1] = d[a][b]
37 35
38 print(classes)
39 #print(data)
40
41 #To allow premature exit
42 sys.exit()
36 print(len(classes))
37 print(len(data))
38 print(len(data[0]))
43 39
44 40 # normalize each row of data # normalize each row of data
45 normdata=[]
41 normdata=[[None]*len(data[0]) for i in range(len(data))]
46 42 for a in range(0,len(data)): for a in range(0,len(data)):
47 norm=[]
48 s=min(data[a])
49 t=max(data[a])
43 s=float(min(data[a]))
44 t=float(max(data[a]))
50 45 for b in range(0,len(data[a])): for b in range(0,len(data[a])):
51 norm.append((float(data[a][b])-float(s))/(float(t)-float(s)))
52 normdata.append(norm)
53
54 #print(normdata)
46 normdata[a][b] = ((float(data[a][b])-s)/(t-s))
55 47
48 print(len(normdata))
49 print(len(normdata[0]))
50 sys.exit()
56 51 classes=np.array(classes) classes=np.array(classes)
57 52 data=np.array(normdata) data=np.array(normdata)
58 53
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/ORpKTKoVQnFhs/Public_Research

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/ORpKTKoVQnFhs/Public_Research

Clone this repository using git:
git clone git://git.rocketgit.com/user/ORpKTKoVQnFhs/Public_Research

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main