public static boolean getHasBiasFromConfig(Map<String, Object> layerConfig,
                                               KerasLayerConfiguration conf)
            throws InvalidKerasConfigurationException {
        Map<String, Object> innerConfig = KerasLayerUtils.getInnerLayerConfigFromConfig(layerConfig, conf);
        boolean hasBias = true;
        if (innerConfig.containsKey(conf.getLAYER_FIELD_USE_BIAS())) {
            hasBias = (boolean) innerConfig.get(conf.getLAYER_FIELD_USE_BIAS());
        }
        return hasBias;
    }
public static boolean getHasBiasFromConfig ( Map < String , Object > layerConfig , KerasLayerConfiguration conf ) throws InvalidKerasConfigurationException { Map < String , Object > innerConfig = KerasLayerUtils . getInnerLayerConfigFromConfig ( layerConfig , conf ) ; boolean hasBias = true ; if ( innerConfig . containsKey ( conf . getLAYER_FIELD_USE_BIAS ( ) ) ) { hasBias = ( boolean ) innerConfig . get ( conf . getLAYER_FIELD_USE_BIAS ( ) ) ; } return hasBias ; }
Determine if layer should be instantiated with bias

@param layerConfig dictionary containing Keras layer configuration
@return whether layer has a bias term
@throws InvalidKerasConfigurationException Invalid Keras config