Class FixedThresholdAlgorithm.FixedAlgorithmThresholdReducer
- java.lang.Object
-
- org.deeplearning4j.optimize.solvers.accumulation.encoding.threshold.FixedThresholdAlgorithm.FixedAlgorithmThresholdReducer
-
- All Implemented Interfaces:
Serializable,ThresholdAlgorithmReducer
- Enclosing class:
- FixedThresholdAlgorithm
public static class FixedThresholdAlgorithm.FixedAlgorithmThresholdReducer extends Object implements ThresholdAlgorithmReducer
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FixedAlgorithmThresholdReducer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(ThresholdAlgorithm instance)Add a ThresholdAlgorithm instance to the reducerThresholdAlgorithmgetFinalResult()ThresholdAlgorithmReducermerge(ThresholdAlgorithmReducer other)Combine two reducers and return the result
-
-
-
Method Detail
-
add
public void add(ThresholdAlgorithm instance)
Description copied from interface:ThresholdAlgorithmReducerAdd a ThresholdAlgorithm instance to the reducer- Specified by:
addin interfaceThresholdAlgorithmReducer- Parameters:
instance- Instance to add. May be null.
-
merge
public ThresholdAlgorithmReducer merge(ThresholdAlgorithmReducer other)
Description copied from interface:ThresholdAlgorithmReducerCombine two reducers and return the result- Specified by:
mergein interfaceThresholdAlgorithmReducer- Parameters:
other- Other reducer to combine with this one- Returns:
- Combined reducer
-
getFinalResult
public ThresholdAlgorithm getFinalResult()
- Specified by:
getFinalResultin interfaceThresholdAlgorithmReducer- Returns:
- The final threshold reducer after combining all instances
-
-