Skip to content

Commit 11bb55a

Browse files
committed
o Load the file using the link specified in p1b1_load call
o make hooks for N1 and NE o Change integer parser
1 parent 690a74e commit 11bb55a

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

workflows/p1b1_grid/data/settings.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
"parameters":
33
{
44
"1": [2,4],
5-
"2": [5]
5+
"2": [5],
6+
"3": [2000],
7+
"4": [600]
68
}
79
}

workflows/p1b1_grid/python/evaluateOne.py

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,23 @@
1212
print (parameterString)
1313
print ("filename is ", filename)
1414

15-
epochs = int(parameterString[0].strip())
16-
batch_size = int(parameterString[2].strip())
17-
print ("Running p1b1 for epochs ", epochs, batch_size)
1815

19-
# N1 = int(parameterString[2].strip())
20-
# NE = int(parameterString[3].strip())
16+
integs = [int(x) for x in parameterString.split(',')]
17+
print (integs)
2118

22-
print("Set the correct paths for test and train file")
23-
test_path="/home/jain/Benchmarks/Data/Pilot1/P1B1.test.csv"
24-
train_path="/home/jain/Benchmarks/Data/Pilot1/P1B1.train.csv"
19+
epochs = integs[0]
20+
batch_size = integs[1]
21+
N1 = integs[2]
22+
NE = integs[3]
2523

2624
print ("Starting to loading Xtrain and Xtest")
27-
X_train, X_test = p1b1.load_data(test_path=test_path, train_path=train_path)
25+
X_train, X_test = p1b1.load_data()
2826
print ("Done loading Xtrain and Xtest")
2927

30-
print ("Running p1b1 for epochs ", epochs)
28+
print ("Running p1b1 for epochs, batch_size, N1, NE", epochs, batch_size, N1, NE)
29+
# Need to introduce N1 and NE as parameters to the run_p1b1 function
3130
encoder, decoder, history = p1b1_baseline_keras2.run_p1b1(X_train, X_test, epochs=epochs, batch_size=batch_size)
32-
print ("Done running p1b1 for epochs ", epochs)
31+
print ("Done running p1b1")
3332

3433
# works around this error:
3534
# https://github.com/tensorflow/tensorflow/issues/3388

0 commit comments

Comments
 (0)