trainer.cpp

来自「amygdata的神经网络算法源代码」· C++ 代码 · 共 43 行

CPP
43
字号
/***************************************************************************                          trainer.cpp  -  description                             -------------------    copyright            : (C) 2005 by Matt Grover    email                : mgrover@amygdala.org ***************************************************************************//*************************************************************************** *                                                                         * *   This program is free software; you can redistribute it and/or modify  * *   it under the terms of the GNU General Public License as published by  * *   the Free Software Foundation; either version 2 of the License, or     * *   (at your option) any later version.                                   * *                                                                         * ***************************************************************************/#include "trainer.h"#include "network.h"using namespace Amygdala;TrainerProperties::~TrainerProperties() {}Trainer::Trainer(TrainerProperties& tProps, std::string name):AmygdalaClass(), callbackPeriod(0), trainerName(name){    tprops = tProps.Copy();}Trainer::~Trainer() {}/*TrainerProperties* Trainer::Copy(){} */void Trainer::PeriodicTrain(){}void Trainer::SetCallbackPeriod(AmTimeInt period){    callbackPeriod = period;    Network::GetNetworkRef()->SetTrainerCallback(this, period + Network::SimTime());}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?