@Test public void when_callingUpdate_expect_updateCountIncremented() { sut.update(null); int updateCountBefore = sut.getUpdateCount(); sut.update(null); int updateCountAfter = sut.getUpdateCount(); assertEquals(updateCountBefore + 1, updateCountAfter); }
@Override public void update(List<EXPERIENCE_TYPE> trainingBatch) { RESULT_TYPE featuresLabels = updateAlgorithm.compute(trainingBatch); updater.update(featuresLabels); ++updateCount; }
UpdateRule implements IUpdateRule<EXPERIENCE_TYPE> { @Override public void update(List<EXPERIENCE_TYPE> trainingBatch) { RESULT_TYPE featuresLabels = updateAlgorithm.compute(trainingBatch); updater.update(featuresLabels); ++updateCount; } }
UpdateRule implements IUpdateRule<EXPERIENCE_TYPE> { @Override public void update(List<EXPERIENCE_TYPE> trainingBatch) { RESULT_TYPE featuresLabels = updateAlgorithm.compute(trainingBatch); updater.update(featuresLabels); ++updateCount; } UpdateRule(@NonNull IUpdateAlgorithm<RESULT_TYPE, EXPERIENCE_TYPE> updateAlgorithm,
                      @NonNull INeuralNetUpdater<RESULT_TYPE> updater); }
UpdateRule implements IUpdateRule<EXPERIENCE_TYPE> { @Override public void update(List<EXPERIENCE_TYPE> trainingBatch) { RESULT_TYPE featuresLabels = updateAlgorithm.compute(trainingBatch); updater.update(featuresLabels); ++updateCount; } UpdateRule(@NonNull IUpdateAlgorithm<RESULT_TYPE, EXPERIENCE_TYPE> updateAlgorithm,
                      @NonNull INeuralNetUpdater<RESULT_TYPE> updater); @Override void update(List<EXPERIENCE_TYPE> trainingBatch); @Override void notifyNewBatchStarted(); }
UpdateRule implements IUpdateRule<EXPERIENCE_TYPE> { @Override public void update(List<EXPERIENCE_TYPE> trainingBatch) { RESULT_TYPE featuresLabels = updateAlgorithm.compute(trainingBatch); updater.update(featuresLabels); ++updateCount; } UpdateRule(@NonNull IUpdateAlgorithm<RESULT_TYPE, EXPERIENCE_TYPE> updateAlgorithm,
                      @NonNull INeuralNetUpdater<RESULT_TYPE> updater); @Override void update(List<EXPERIENCE_TYPE> trainingBatch); @Override void notifyNewBatchStarted();  }