refactor(network): separate optimizer state

This commit is contained in:
2026-11-22 12:03:04 +01:00
parent 2f24260cbf
commit 14292b1d97
7 changed files with 166 additions and 29 deletions
+1 -1
View File
@@ -135,7 +135,7 @@ int main(void) {
std::ofstream saveFile(NETWORK_PATH, std::ios::out | std::ios::binary);
network_type::learning_state* state = new network_type::learning_state();
auto* state = new network_type::learning_state<cenet::optim::adam>();
for (std::size_t epoch = 0; epoch <= MAX_EPOCHS; ++epoch) {
shuffle_dataset(trainSet);