private double[] hiddenDropoutratios(BackendParams bparms) {
        double[] hiddenDropoutRatios = (double[]) bparms.get("hidden_dropout_ratios");
        if(null != hiddenDropoutRatios) {
            return hiddenDropoutRatios;
        }
        int layerNr = ((int[]) bparms.get("hidden")).length;
        hiddenDropoutRatios = new double[layerNr];
        for(int i = 0; i < layerNr; i++) {
            hiddenDropoutRatios[i] = 0d;
        }
        return hiddenDropoutRatios;
    }
private double [ ] hiddenDropoutratios ( BackendParams bparms ) { double [ ] hiddenDropoutRatios = ( double [ ] ) bparms . get ( "hidden_dropout_ratios" ) ; if ( null != hiddenDropoutRatios ) { return hiddenDropoutRatios ; } int layerNr = ( ( int [ ] ) bparms . get ( "hidden" ) ) . length ; hiddenDropoutRatios = new double [ layerNr ] ; for ( int i = 0 ; i < layerNr ; i ++ ) { hiddenDropoutRatios [ i ] = 0d ; } return hiddenDropoutRatios ; }
returns doubles not floats b/c we get doubles from H2O