Initialize all class parameters.

This commit is contained in:
Marcus Edel
2021-04-07 22:55:15 +02:00
parent bccdbcc7de
commit 1cd90c6158
3 changed files with 5 additions and 2 deletions
@@ -73,7 +73,8 @@ class LBestUpdate
*
* @param parent Instantiated parent class.
*/
Policy(const LBestUpdate& /* parent */) { /* Do nothing. */ }
Policy(const LBestUpdate& /* parent */) : n(0)
{ /* Do nothing. */ }
/**
* The Initialize method is called by PSO Optimizer method before the
@@ -64,6 +64,7 @@ class SnapshotEnsembles
constStepSize(stepSize),
nextRestart(epochRestart),
batchRestart(0),
epochBatches(0),
epoch(0)
{
snapshotEpochs = 0;
@@ -52,7 +52,8 @@ class SPALeRAStepsize
const double adaptRate = 3.10e-8) :
alpha(alpha),
epsilon(epsilon),
adaptRate(adaptRate)
adaptRate(adaptRate),
lambda(0)
{
/* Nothing to do here. */
}