eval the beginning
This commit is contained in:
parent
7133025403
commit
c393a0622c
8
lab5/eval/Jenkinsfile
vendored
8
lab5/eval/Jenkinsfile
vendored
@ -13,10 +13,10 @@ pipeline {
|
|||||||
agent any
|
agent any
|
||||||
steps {
|
steps {
|
||||||
sh '''
|
sh '''
|
||||||
cp ./lab5/train/Dockerfile .
|
cp ./lab5/eval/Dockerfile .
|
||||||
cp ./lab5/train/script.sh .
|
cp ./lab5/eval/script.sh .
|
||||||
cp ./lab5/train/eval.py .
|
cp ./lab5/eval/eval.py .
|
||||||
cp ./lab5/train/requirements.txt .
|
cp ./lab5/eval/requirements.txt .
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
import numpy as np
|
|
||||||
import pandas as pd
|
import pandas as pd
|
||||||
import sys
|
import sys
|
||||||
import tensorflow
|
import tensorflow
|
||||||
@ -29,8 +28,6 @@ model.compile(
|
|||||||
optimizer=tensorflow.keras.optimizers.Adam(lr=float(sys.argv[1])),
|
optimizer=tensorflow.keras.optimizers.Adam(lr=float(sys.argv[1])),
|
||||||
metrics=[tensorflow.keras.metrics.BinaryAccuracy()])
|
metrics=[tensorflow.keras.metrics.BinaryAccuracy()])
|
||||||
|
|
||||||
|
|
||||||
# history = model.fit(tensorflow.convert_to_tensor(X_train, np.float32),
|
|
||||||
history = model.fit(X_train, Y_train, epochs=2, validation_data=(X_valid, Y_valid))
|
history = model.fit(X_train, Y_train, epochs=2, validation_data=(X_valid, Y_valid))
|
||||||
|
|
||||||
model.save('grid-stability-dense.h5')
|
model.save('grid-stability-dense.h5')
|
||||||
|
Loading…
Reference in New Issue
Block a user