Skip to content

Commit

Permalink
Add back commented-out code for reproducibilty for single-node operat…
Browse files Browse the repository at this point in the history
…ion of DL.
  • Loading branch information
arnocandel committed Aug 7, 2014
1 parent 1bf6724 commit 073fc02
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/java/hex/deeplearning/DeepLearningTask.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,12 @@ private DeepLearningTask(hex.deeplearning.DeepLearningModel.DeepLearningModelInf

@Override public final void processRow(long seed, final double [] nums, final int numcats, final int [] cats, double [] responses){
if(_output.get_params().self() != null && !Job.isRunning(_output.get_params().self())) throw new Job.JobCancelledException();
seed = new Random().nextLong(); //no point in being reproducible - better to be "good" at being random
// if (H2O.CLOUD.size()==1) {
// seed += model_info().get_processed_global(); //avoid periodicity
// } else {
// seed = new Random().nextLong(); //multi-node: no point in being reproducible - better to be "good" at being random
// }
seed = new Random().nextLong();
((Neurons.Input)_neurons[0]).setInput(seed, nums, numcats, cats);
step(seed, _neurons, _output, _training, responses);
}
Expand Down

0 comments on commit 073fc02

Please sign in to comment.