Number recognition Tuning

This commit is contained in:
IlyaShurupov 2023-10-25 22:42:20 +03:00 committed by Ilya Shurupov
parent 4804e51ad7
commit ee8027055e
3 changed files with 24 additions and 12 deletions

View file

@ -22,9 +22,9 @@ static halnf relu(halnf val) { return val < 0 ? 0 : val; }
static halnf reluDerivative(halnf val) { return val < 0 ? 0 : 1; }
static halnf activationFunction(halnf val) { return relu(val); }
static halnf activationFunction(halnf val) { return sigmoid(val); }
static halnf activationFunctionDerivative(halnf val) { return reluDerivative(val); }
static halnf activationFunctionDerivative(halnf val) { return sigmoidDerivative(val); }
FCNN::FCNN(const Buffer<halni>& description) { initializeRandom(description); }