new IsotonicRegression() → (nullable) {?}
Constructs IsotonicRegression instance with default parameter isotonic = true.
Returns:
New instance of IsotonicRegression.
- Type
- ?
Methods
run(input) → {module:eclairjs/mllib/regression.IsotonicRegressionModel}
Run IsotonicRegression algorithm to obtain isotonic regression model.
Parameters:
Name | Type | Description |
---|---|---|
input |
module:eclairjs/rdd.RDD | RDD of tuples (label, feature, weight) where label is dependent variable for which we calculate isotonic regression, feature is independent variable and weight represents number of measures with default 1. If multiple labels share the same feature value then they are ordered before the algorithm is executed. |
Returns:
Isotonic regression model.
- Type
- module:eclairjs/mllib/regression.IsotonicRegressionModel
setIsotonic(isotonic) → {module:eclairjs/mllib/regression.IsotonicRegression}
Sets the isotonic parameter.
Parameters:
Name | Type | Description |
---|---|---|
isotonic |
boolean | Isotonic (increasing) or antitonic (decreasing) sequence. |
Returns:
This instance of IsotonicRegression.
- Type
- module:eclairjs/mllib/regression.IsotonicRegression