-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathautoencoder_genome.py
More file actions
29 lines (27 loc) · 861 Bytes
/
Copy pathautoencoder_genome.py
File metadata and controls
29 lines (27 loc) · 861 Bytes
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
28
29
import random as rd
file_path = "bioex/autoencoder_genome.txt"
with open(file_path,'a') as file:
for items in range(0,1000):
string = ""
p1 = rd.randint(0,6)
p2 = rd.randint(0,5)
p3 = rd.randint(0,4)
p4 = rd.randint(0,3)
p5 = rd.randint(0,2)
p6 = rd.randint(0,1)
q1 = rd.randint(0,6)
q2 = rd.randint(0,5)
q3 = rd.randint(0,4)
q4 = rd.randint(0,3)
q5 = rd.randint(0,2)
q6 = rd.randint(0,1)
r1 = rd.randint(0,6)
r2 = rd.randint(0,5)
r3 = rd.randint(0,4)
r4 = rd.randint(0,3)
r5 = rd.randint(0,2)
r6 = rd.randint(0,1)
string = string + str(p1) + str(p2) + str(p3) + str(p4) + str(p5) + str(p6) + str(q1) + str(q2) + str(q3) + str(q4) + str(q5) + str(q6) + str(r1) + str(r2) + str(r3) + str(r4) + str(r5) + str(r6)
file.write(string)
file.write("\n")
print("genome dataset for autoencoder created successfully")