Package net.starype.quiz.api.parser
Class BinaryLossMapper
- java.lang.Object
-
- net.starype.quiz.api.parser.BinaryLossMapper
-
- All Implemented Interfaces:
ConfigMapper<LossFunction>
public class BinaryLossMapper extends java.lang.Object implements ConfigMapper<LossFunction>
Mapper for theBinaryLossFunctionobject
-
-
Constructor Summary
Constructors Constructor Description BinaryLossMapper()
-
Method Summary
Modifier and Type Method Description java.lang.StringgetMapperName()LossFunctionmap(ReadableMap config)Produce a result of a specific type.
-
-
-
Method Detail
-
getMapperName
public java.lang.String getMapperName()
- Specified by:
getMapperNamein interfaceConfigMapper<LossFunction>- Returns:
- the value that may match a key from a TOML configuration file
-
map
public LossFunction map(ReadableMap config)
Description copied from interface:ConfigMapperProduce a result of a specific type.
The configuration object may be used to gather additional information required to construct the object.- Specified by:
mapin interfaceConfigMapper<LossFunction>- Parameters:
config- the configuration object loaded from the file- Returns:
- a result representing the value
-
-