Added simple (de-)serialization of (trained) nets

This commit is contained in:
Michael Mandl 2015-10-25 17:40:22 +01:00
parent 249bd22b67
commit 99ef63e019
10 changed files with 153 additions and 9 deletions

View file

@ -12,7 +12,7 @@ void NetLearner::run()
double batchMaxError = 0.0;
double batchMeanError = 0.0;
size_t numIterations = 1000000;
size_t numIterations = 100000;
for (size_t iteration = 0; iteration < numIterations; ++iteration)
{
std::vector<double> inputValues =
@ -57,6 +57,8 @@ void NetLearner::run()
emit progress((double)iteration / (double)numIterations);
}
myNet.save("mynet.nnet");
}
catch (std::exception &ex)
{

View file

@ -6,6 +6,8 @@ NeuroUI::NeuroUI(QWidget *parent) :
ui(new Ui::NeuroUI)
{
ui->setupUi(this);
ui->logView->addItem("Ready.");
}
NeuroUI::~NeuroUI()