init commit

This commit is contained in:
2024-11-12 17:41:10 +01:00
parent 1e4f1f955b
commit 20bc9108d3
146 changed files with 24465 additions and 0 deletions

25
backprop/Utils.cpp Normal file
View File

@@ -0,0 +1,25 @@
#include "Utils.h"
#include <math.h>
#include <iostream>
using namespace std;
Utils::Utils()
{
}
double Utils::sigmoid(const double val)
{
return tanh(val);
}
double Utils::dsigmoid(const double val)
{
return (1.0-(val*val));
}
bool Utils::accept(const double val)
{
if(val>ACCEPT) return 1;
return 0;
}