This repository has been archived on 2024-12-15. You can view files and clone it, but cannot push or open issues or pull requests.
Neuro/Neuro.cpp

33 lines
483 B
C++

#include <iostream>
#include <exception>
#include "Net.h"
int main()
{
try
{
std::cout << "Neuro running" << std::endl;
Net myNet({ 3, 4, 2 });
myNet.feedForward({ 1.0, 2.0, 3.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;
}