Class LinearLossMapper

    • Method Summary

      Modifier and Type Method Description
      java.lang.String getMapperName()  
      LossFunction map​(ReadableMap config)
      Produce a result of a specific type.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LinearLossMapper

        public LinearLossMapper()
    • Method Detail

      • getMapperName

        public java.lang.String getMapperName()
        Specified by:
        getMapperName in interface ConfigMapper<LossFunction>
        Returns:
        the value that may match a key from a TOML configuration file
      • map

        public LossFunction map​(ReadableMap config)
        Description copied from interface: ConfigMapper
        Produce a result of a specific type.
        The configuration object may be used to gather additional information required to construct the object.
        Specified by:
        map in interface ConfigMapper<LossFunction>
        Parameters:
        config - the configuration object loaded from the file
        Returns:
        a result representing the value