-
Notifications
You must be signed in to change notification settings - Fork 0
/
createDirectors.py
66 lines (57 loc) · 3.11 KB
/
createDirectors.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
import os
from datetime import datetime
pathPlotsBaseString = './NN_data/plots/'
pathModelBaseString = './NN_data/models/'
now = datetime.now()
year = now.strftime("%Y")
month = now.strftime("%m")
day = now.strftime("%d")
# year = "2022"
# month = "01"
# day = "23"
data_dir = "./dataset_100/separated_text_data/"
for i in range(0, 48):
pathPlotsFinalString = pathPlotsBaseString + 'User' + str(i)
pathModelBaseFinalString = pathModelBaseString + 'User' + str(i)
effectivePathPlots = os.path.join(pathPlotsFinalString)
effectivePathModel = os.path.join(pathModelBaseFinalString)
effectivePathModelNormal = os.path.join(pathModelBaseFinalString + '/folder_version')
# effectivePathModelGauss = os.path.join(pathModelBaseFinalString + '/resultGauss')
if not os.path.exists(effectivePathPlots):
os.makedirs(effectivePathPlots)
if not os.path.exists(effectivePathModel):
os.makedirs(effectivePathModel)
if not os.path.exists(effectivePathModelNormal):
os.makedirs(effectivePathModelNormal)
# if not os.path.exists(effectivePathModelGauss):
# os.makedirs(effectivePathModelGauss)
pathPlotsAccuracyFinalString = pathPlotsFinalString + '/accuracy'
# pathPlotsAccuracyGaussFinalString = pathPlotsFinalString + '/accuracy/resultGauss'
pathPlotsLossFinalString = pathPlotsFinalString + '/loss'
# pathPlotsLossGaussFinalString = pathPlotsFinalString + '/loss/resultGauss'
pathPlotsPrecisionFinalString = pathPlotsFinalString + '/precision'
# pathPlotsPrecisionGaussFinalString = pathPlotsFinalString + '/precision/resultGauss'
pathPlotsRecallFinalString = pathPlotsFinalString + '/recall'
# pathPlotsRecallGaussFinalString = pathPlotsFinalString + '/recall/resultGauss'
pathPlotsF1ScoreFinalString = pathPlotsFinalString + '/f1score'
# pathPlotsF1ScoreGaussFinalString = pathPlotsFinalString + '/f1score/resultGauss'
effectivePathPlotsAccuracy = os.path.join(pathPlotsAccuracyFinalString)
# effectivePathPlotsAccuracyGauss = os.path.join(pathPlotsAccuracyGaussFinalString)
effectivePathPlotsLoss = os.path.join(pathPlotsLossFinalString)
# effectivePathPlotsLossGauss = os.path.join(pathPlotsLossGaussFinalString)
effectivePathPlotsPrecision = os.path.join(pathPlotsPrecisionFinalString)
# effectivePathPlotsPrecisionGauss = os.path.join(pathPlotsPrecisionGaussFinalString)
effectivePathPlotsRecall = os.path.join(pathPlotsRecallFinalString)
# effectivePathPlotsRecallGauss = os.path.join(pathPlotsRecallGaussFinalString)
effectivePathPlotsF1Score = os.path.join(pathPlotsF1ScoreFinalString)
# effectivePathPlotsF1ScoreGauss = os.path.join(pathPlotsF1ScoreGaussFinalString)
os.makedirs(effectivePathPlotsAccuracy)
# os.makedirs(effectivePathPlotsAccuracyGauss)
os.makedirs(effectivePathPlotsLoss)
# os.makedirs(effectivePathPlotsLossGauss)
os.makedirs(effectivePathPlotsPrecision)
# os.makedirs(effectivePathPlotsPrecisionGauss)
os.makedirs(effectivePathPlotsRecall)
# os.makedirs(effectivePathPlotsRecallGauss)
os.makedirs(effectivePathPlotsF1Score)
# os.makedirs(effectivePathPlotsF1ScoreGauss)