ATLAS Offline Software
Loading...
Searching...
No Matches
parseDir Namespace Reference

Functions

 findMin (path)

Variables

str path = "/afs/cern.ch/user/g/giacinto/scratch0/Athena/rel_2/InnerDetector/InDetCalibAlgs/PixelCalibAlgs/NnClusteringCalibration/"
list test_table = []
str wh = path+dir
list listed = [ name for name in os.listdir(wh) if os.path.isdir(os.path.join(wh, name)) ]
 resDir = filter( lambda dirname: dirname[0]!="L" and dirname[0]!="." , listed)
str weightPath = wh+"/"+weightsDir
list listedWeights = [ name for name in os.listdir(weightPath) if os.path.isdir(os.path.join(weightPath , name)) ]
 filteredListW = filter( lambda dirname: dirname[0]!="L" and dirname[0]!="." , listedWeights)
str chronFile = weightPath+"/"+w+"/trainingCronology.txt"
int epochAtMin = -1
int min = -1

Function Documentation

◆ findMin()

parseDir.findMin ( path)

Definition at line 6 of file parseDir.py.

6def findMin(path):
7 minimum=10000
8 epochWithMinimum=-1
9
10 import os
11 command = "cp "+path+" ."
12 os.system(command)
13 os.system('source cleanFile.sh')
14
15
16 for line in file('chron.txt'):
17 line = line.split()
18 epoch = int(line[0])
19 trainingError = float(line[1])
20 testError = float(line[2])
21 if testError < minimum:
22 minimum = testError
23 epochWithMinimum = epoch
24
25 return epochWithMinimum , minimum
26
27
28
TFile * file

Variable Documentation

◆ chronFile

str parseDir.chronFile = weightPath+"/"+w+"/trainingCronology.txt"

Definition at line 55 of file parseDir.py.

◆ epochAtMin

parseDir.epochAtMin = -1

Definition at line 56 of file parseDir.py.

◆ filteredListW

parseDir.filteredListW = filter( lambda dirname: dirname[0]!="L" and dirname[0]!="." , listedWeights)

Definition at line 53 of file parseDir.py.

◆ listed

list parseDir.listed = [ name for name in os.listdir(wh) if os.path.isdir(os.path.join(wh, name)) ]

Definition at line 46 of file parseDir.py.

◆ listedWeights

list parseDir.listedWeights = [ name for name in os.listdir(weightPath) if os.path.isdir(os.path.join(weightPath , name)) ]

Definition at line 52 of file parseDir.py.

◆ min

parseDir.min = -1

Definition at line 57 of file parseDir.py.

◆ path

str parseDir.path = "/afs/cern.ch/user/g/giacinto/scratch0/Athena/rel_2/InnerDetector/InDetCalibAlgs/PixelCalibAlgs/NnClusteringCalibration/"

Definition at line 29 of file parseDir.py.

◆ resDir

parseDir.resDir = filter( lambda dirname: dirname[0]!="L" and dirname[0]!="." , listed)

Definition at line 48 of file parseDir.py.

◆ test_table

list parseDir.test_table = []

Definition at line 31 of file parseDir.py.

◆ weightPath

str parseDir.weightPath = wh+"/"+weightsDir

Definition at line 51 of file parseDir.py.

◆ wh

str parseDir.wh = path+dir

Definition at line 45 of file parseDir.py.