CatagoricalCrossentrophy
Sync public mirror / sync (push) Successful in 27s

Fixed the loss functions for categories and is ready for accuracy calculation on page 129
This commit is contained in:
2025-10-07 13:09:25 +02:00
parent 8e70310760
commit 66b3a4ee6b
34 changed files with 754 additions and 260 deletions
@@ -0,0 +1,24 @@
#pragma once
#include "./core/omp_config.h"
#include "./utils/vector.h"
#include "./utils/matrix.h"
namespace neural_networks{
template <typename T>
struct Activation_ReLU{
//utils::Matrix<T> inputs;
utils::Matrix<T> outputs;
void forward(const utils::Matrix<T>& inputs){
outputs = numerics::matclip_low(inputs, T{0});
}
};
} // end namespace neural_networks