OneVsRest (Spark 3.5.5 JavaDoc) (original) (raw)


public final class OneVsRest
extends Estimator<OneVsRestModel>
implements OneVsRestParams, HasParallelism, MLWritable
Reduction of Multiclass Classification to Binary Classification. Performs reduction using one against all strategy. For a multiclass classification with k classes, train k models (one per class). Each example is scored against all k models and the model with highest score is picked to label the example.
See Also:
Serialized Form