Initialize all class parameters.
This commit is contained in:
@@ -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. */
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user