All Downloads are FREE. Search and download functionalities are using the official Maven repository.

hex.genmodel.algos.isotonic.IsotonicRegressionMojoModel Maven / Gradle / Ivy

There is a newer version: 3.46.0.6
Show newest version
package hex.genmodel.algos.isotonic;

import hex.genmodel.MojoModel;

public class IsotonicRegressionMojoModel extends MojoModel {

    protected IsotonicCalibrator _isotonic_calibrator;

    public IsotonicRegressionMojoModel(String[] columns, String[][] domains, String responseColumn) {
        super(columns, domains, responseColumn);
    }

    @Override
    public double[] score0(double[] row, double[] preds) {
        preds[0] = _isotonic_calibrator.calibrateP1(row[0]);
        return preds;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy