public class IsotonicRegressionScaling
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
IsotonicRegressionScaling(double[] buckets,
double[] prob)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static IsotonicRegressionScaling |
fit(double[] scores,
int[] y)
Trains the Isotonic Regression scaling.
|
double |
predict(double y)
Returns the posterior probability estimate P(y = 1 | x).
|
java.lang.String |
toString() |
public IsotonicRegressionScaling(double[] buckets, double[] prob)
buckets
- the step-wise buckets of function values in ascending order.prob
- the probability of instances falling into the corresponding buckets.public static IsotonicRegressionScaling fit(double[] scores, int[] y)
scores
- The predicted scores.y
- The training labels.public double predict(double y)
y
- the binary classifier output score.public java.lang.String toString()
toString
in class java.lang.Object