Package net.starype.quiz.api.parser
Class LinearLossMapper
- java.lang.Object
-
- net.starype.quiz.api.parser.LinearLossMapper
-
- All Implemented Interfaces:
ConfigMapper<LossFunction>
public class LinearLossMapper extends java.lang.Object implements ConfigMapper<LossFunction>
Mapper for theLinearLossFunctionobject
-
-
Constructor Summary
Constructors Constructor Description LinearLossMapper()
-
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
-
-