Added simple (de-)serialization of (trained) nets
This commit is contained in:
parent
249bd22b67
commit
99ef63e019
10 changed files with 153 additions and 9 deletions
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -6,6 +6,8 @@ NeuroUI::NeuroUI(QWidget *parent) :
|
|||
ui(new Ui::NeuroUI)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
||||
ui->logView->addItem("Ready.");
|
||||
}
|
||||
|
||||
NeuroUI::~NeuroUI()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue