idk
parent
830883930b
commit
22befde2f5
|
@ -1,5 +1,5 @@
|
||||||
cmake_minimum_required(VERSION 3.25)
|
cmake_minimum_required(VERSION 3.25)
|
||||||
project(COSC-4P80-Final-Project VERSION 0.0.20)
|
project(COSC-4P80-Final-Project VERSION 0.0.21)
|
||||||
|
|
||||||
option(ENABLE_ADDRSAN "Enable the address sanitizer" OFF)
|
option(ENABLE_ADDRSAN "Enable the address sanitizer" OFF)
|
||||||
option(ENABLE_UBSAN "Enable the ub sanitizer" OFF)
|
option(ENABLE_UBSAN "Enable the ub sanitizer" OFF)
|
||||||
|
|
|
@ -610,7 +610,7 @@ namespace fp
|
||||||
{
|
{
|
||||||
// add in all the new epochs
|
// add in all the new epochs
|
||||||
auto& vec = stats.run_stats.back();
|
auto& vec = stats.run_stats.back();
|
||||||
vec.epoch_stats.insert(vec.epoch_stats.begin(), stat.epoch_stats.begin(), stat.epoch_stats.end());
|
vec.epoch_stats.insert(vec.epoch_stats.end(), stat.epoch_stats.begin(), stat.epoch_stats.end());
|
||||||
} else
|
} else
|
||||||
stats += stat;
|
stats += stat;
|
||||||
}
|
}
|
||||||
|
@ -638,13 +638,17 @@ namespace fp
|
||||||
state << '\n';
|
state << '\n';
|
||||||
state << stats;
|
state << stats;
|
||||||
state << '\n';
|
state << '\n';
|
||||||
state << test_stats.size();
|
state << static_cast<blt::size_t>(std::max(static_cast<blt::i64>(test_stats.size()) - 1, 0l));
|
||||||
state << '\n';
|
state << '\n';
|
||||||
|
if (!test_stats.empty())
|
||||||
|
{
|
||||||
|
// the last test stat will be recalculated on restore. keeping it is an error.
|
||||||
for (const auto& v : blt::iterate(test_stats).take(test_stats.size() - 1))
|
for (const auto& v : blt::iterate(test_stats).take(test_stats.size() - 1))
|
||||||
{
|
{
|
||||||
state << v;
|
state << v;
|
||||||
state << '\n';
|
state << '\n';
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return {stats, average};
|
return {stats, average};
|
||||||
}
|
}
|
||||||
|
@ -787,6 +791,7 @@ namespace fp
|
||||||
average_epochs << average_forward_size << "," << average_deep_size << std::endl;
|
average_epochs << average_forward_size << "," << average_deep_size << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BLT_INFO("Running python!");
|
||||||
run_python_line_graph("Feed-Forward vs Deep Learning, Average Loss over Epochs", "epochs.png", path + "/forward_train_results.csv",
|
run_python_line_graph("Feed-Forward vs Deep Learning, Average Loss over Epochs", "epochs.png", path + "/forward_train_results.csv",
|
||||||
path + "/deep_train_results.csv", average_forward_size, average_deep_size);
|
path + "/deep_train_results.csv", average_forward_size, average_deep_size);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue