Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve saving bug with multilabel parameter #13842

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.johnsnowlabs.nlp

import org.apache.spark.ml.param.{FloatParam, Param}
import org.apache.spark.ml.param.{BooleanParam, FloatParam, Param}

trait HasClassifierActivationProperties extends ParamsAndFeaturesWritable {

Expand Down Expand Up @@ -47,7 +47,7 @@ trait HasClassifierActivationProperties extends ParamsAndFeaturesWritable {
*
* @group param
*/
val multilabel: Param[Boolean] = new Param(
val multilabel: BooleanParam = new BooleanParam(
this,
"multilabel",
"Whether or not the result should be multi-class (the sum of all probabilities is 1.0) or multi-label (each label has a probability between 0.0 to 1.0). Default is False i.e. multi-class")
Expand Down