update dllib-sacred.py
This commit is contained in:
parent
ab7444f594
commit
6cda242a4c
@ -323,6 +323,7 @@ def my_main(epochs, _run):
|
|||||||
|
|
||||||
print("The accuracy is", accuracy_score(labels_test_g, np.argmax(pred, axis=1)))
|
print("The accuracy is", accuracy_score(labels_test_g, np.argmax(pred, axis=1)))
|
||||||
_run.info['accuracy'] = accuracy_score(labels_test_g, np.argmax(pred, axis=1))
|
_run.info['accuracy'] = accuracy_score(labels_test_g, np.argmax(pred, axis=1))
|
||||||
|
_run.log_scalar("measure.accuracy", accuracy_score(labels_test_g, np.argmax(pred, axis=1)))
|
||||||
pred = pd.DataFrame(pred)
|
pred = pd.DataFrame(pred)
|
||||||
|
|
||||||
pred.to_csv('result.csv')
|
pred.to_csv('result.csv')
|
||||||
|
Loading…
Reference in New Issue
Block a user