tests
This commit is contained in:
parent
8c7af7c4a6
commit
bc8ca47c2c
2
main.cpp
2
main.cpp
|
@ -141,7 +141,7 @@ float sigmoidDerivative(float x) {
|
||||||
int main() {
|
int main() {
|
||||||
NeuralNetwork nn;
|
NeuralNetwork nn;
|
||||||
nn.addLayer(2, 2, sigmoid, sigmoidDerivative);
|
nn.addLayer(2, 2, sigmoid, sigmoidDerivative);
|
||||||
nn.addLayer(1, 1, sigmoid, sigmoidDerivative);
|
nn.addLayer(1, 2, sigmoid, sigmoidDerivative);
|
||||||
|
|
||||||
std::vector<std::vector<float>> ref = {
|
std::vector<std::vector<float>> ref = {
|
||||||
{0, 0},
|
{0, 0},
|
||||||
|
|
Loading…
Reference in New Issue