From 35432b62945396626f38575391a83ddc387ea33a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Montan=CC=83ana?= Date: Tue, 22 Aug 2023 12:30:27 +0200 Subject: [PATCH] Fix time std was not saved in experiment --- src/Platform/Experiment.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Platform/Experiment.cc b/src/Platform/Experiment.cc index 480a9de..09674ab 100644 --- a/src/Platform/Experiment.cc +++ b/src/Platform/Experiment.cc @@ -181,11 +181,11 @@ namespace platform { item++; } cout << "end. " << flush; - delete fold; } result.setScoreTest(torch::mean(accuracy_test).item()).setScoreTrain(torch::mean(accuracy_train).item()); result.setScoreTestStd(torch::std(accuracy_test).item()).setScoreTrainStd(torch::std(accuracy_train).item()); result.setTrainTime(torch::mean(train_time).item()).setTestTime(torch::mean(test_time).item()); + result.setTestTimeStd(torch::std(test_time).item()).setTrainTimeStd(torch::std(train_time).item()); result.setNodes(torch::mean(nodes).item()).setLeaves(torch::mean(edges).item()).setDepth(torch::mean(num_states).item()); result.setDataset(fileName); addResult(result);