Neuro/Neuro.cpp

33 lines
478 B
C++

#include <iostream>
#include <exception>
#include "Net.h"
int main()
{
try
{
std::cout << "Neuro running" << std::endl;
Net myNet({ 2, 3, 1 });
myNet.feedForward({ 1.0, 0.0 });
std::vector<double> result = myNet.getResult();
std::cout << "Result: ";
for (double &value : result)
{
std::cout << value << " ";
}
std::cout << std::endl;
}
catch (std::exception &ex)
{
std::cerr << "Error: " << ex.what() << std::endl;
return 1;
}
return 0;
}