save results
This commit is contained in:
parent
ba432415fb
commit
7c428075a4
@ -31,5 +31,10 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
stage('archive-artifacts') {
|
||||||
|
steps{
|
||||||
|
archiveArtifacts 'results.txt'
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -30,10 +30,9 @@ model.summary()
|
|||||||
|
|
||||||
model.load_weights('suicide_model.h5')
|
model.load_weights('suicide_model.h5')
|
||||||
|
|
||||||
|
predictions = model.predict(X_test)
|
||||||
|
|
||||||
# predictions = model.predict(X_test)
|
error = mean_squared_error(y_test, predictions)
|
||||||
|
|
||||||
# error = mean_squared_error(y_test, predictions)
|
with open('results.txt', 'a') as f:
|
||||||
|
f.write(str(error) + "\n")
|
||||||
# with open('eval_results.txt', 'a') as f:
|
|
||||||
# f.write(str(error) + "\n")
|
|
||||||
|
Loading…
Reference in New Issue
Block a user