Fix wrong cache configuration for MLP training data
this closes
@@ -60,7 +60,7 @@ public class MLPGroupUpdateTrainerCacheInput extends AbstractMLPGroupUpdateTrain
/**
* Random number generator.
*/
- private final Random rand;
+ private Random rand;
/**
* Construct instance of this class with given parameters.
@@ -80,7 +80,6 @@ public class MLPGroupUpdateTrainerCacheInput extends AbstractMLPGroupUpdateTrain
this.batchSize = batchSize;
this.cache = cache;
this.mlp = new MultilayerPerceptron(arch, init);
- this.rand = rand;
}
/**
@@ -116,7 +115,7 @@ public class MLPGroupUpdateTrainerCacheInput extends AbstractMLPGroupUpdateTrain
@Override public IgniteSupplier<IgniteBiTuple<Matrix, Matrix>> batchSupplier() {
String cName = cache.getName();
int bs = batchSize;
- Random r = rand; // IMPL NOTE this is intended to make below lambda more lightweight.
+ Random r = rand;
return () -> {
Ignite ignite = Ignition.localIgnite();
