@Override public void stepEnded(IterativeAlgorithm algorithm) { System.out.println("... ending step: " + algorithm.getIteration()); } }
@Override public void stepEnded(IterativeAlgorithm algorithm) { System.out.println("... ending step: " + algorithm.getIteration()); } }
@Override public void stepStarted(IterativeAlgorithm algorithm) { System.out.println("... starting step: " + algorithm.getIteration()); }
@Override public void stepStarted(IterativeAlgorithm algorithm) { System.out.println("... starting step: " + algorithm.getIteration()); }
@Override public void stepStarted( final IterativeAlgorithm algorithm) { this.out.println(String.format(this.format, algorithm.getIteration())); }
@Override public void stepStarted( final IterativeAlgorithm algorithm) { this.out.println(String.format(this.format, algorithm.getIteration())); }
@Override public void stepStarted( final IterativeAlgorithm algorithm) { this.out.println(String.format(this.format, algorithm.getIteration())); }
@Override public void stepEnded( final IterativeAlgorithm algorithm) { final int iteration = algorithm.getIteration(); final MeasurablePerformanceAlgorithm measurableAlgorithm = (MeasurablePerformanceAlgorithm) algorithm; // Be safe for handling null perfomance. final NamedValue<?> performance = measurableAlgorithm.getPerformance(); String name = performance == null ? "" : performance.getName(); if (name == null) { name = ""; } final Object value = performance == null ? null : performance.getValue(); this.out.println(String.format(format, iteration, name, value)); }
@Override public void stepEnded( final IterativeAlgorithm algorithm) { final int iteration = algorithm.getIteration(); final MeasurablePerformanceAlgorithm measurableAlgorithm = (MeasurablePerformanceAlgorithm) algorithm; // Be safe for handling null perfomance. final NamedValue<?> performance = measurableAlgorithm.getPerformance(); String name = performance == null ? "" : performance.getName(); if (name == null) { name = ""; } final Object value = performance == null ? null : performance.getValue(); this.out.println(String.format(format, iteration, name, value)); }
@Override public void stepEnded( final IterativeAlgorithm algorithm) { final int iteration = algorithm.getIteration(); final MeasurablePerformanceAlgorithm measurableAlgorithm = (MeasurablePerformanceAlgorithm) algorithm; // Be safe for handling null perfomance. final NamedValue<?> performance = measurableAlgorithm.getPerformance(); String name = performance == null ? "" : performance.getName(); if (name == null) { name = ""; } final Object value = performance == null ? null : performance.getValue(); this.out.println(String.format(format, iteration, name, value)); }
@Override public void stepEnded( final IterativeAlgorithm algorithm) { @SuppressWarnings("unchecked") final AnytimeBatchLearner<? extends DataType, ? extends ObjectType> anytimeAlgorithm = (AnytimeBatchLearner<? extends DataType, ? extends ObjectType>) algorithm; final Object trainPerformance = this.performanceEvaluator.evaluatePerformance( anytimeAlgorithm.getResult(), anytimeAlgorithm.getData()); final Object validationPerformance = this.performanceEvaluator.evaluatePerformance( anytimeAlgorithm.getResult(), this.validationData); this.out.println(String.format(this.format, algorithm.getIteration(), trainPerformance, validationPerformance)); }
@Override public void stepEnded( final IterativeAlgorithm algorithm) { @SuppressWarnings("unchecked") final AnytimeBatchLearner<? extends DataType, ? extends ObjectType> anytimeAlgorithm = (AnytimeBatchLearner<? extends DataType, ? extends ObjectType>) algorithm; final Object trainPerformance = this.performanceEvaluator.evaluatePerformance( anytimeAlgorithm.getResult(), anytimeAlgorithm.getData()); final Object validationPerformance = this.performanceEvaluator.evaluatePerformance( anytimeAlgorithm.getResult(), this.validationData); this.out.println(String.format(this.format, algorithm.getIteration(), trainPerformance, validationPerformance)); }
@Override public void stepEnded( final IterativeAlgorithm algorithm) { @SuppressWarnings("unchecked") final AnytimeBatchLearner<? extends DataType, ? extends ObjectType> anytimeAlgorithm = (AnytimeBatchLearner<? extends DataType, ? extends ObjectType>) algorithm; final Object trainPerformance = this.performanceEvaluator.evaluatePerformance( anytimeAlgorithm.getResult(), anytimeAlgorithm.getData()); final Object validationPerformance = this.performanceEvaluator.evaluatePerformance( anytimeAlgorithm.getResult(), this.validationData); this.out.println(String.format(this.format, algorithm.getIteration(), trainPerformance, validationPerformance)); }