Skip to content

Commit

Permalink
Misleading exception information: no such param of "allow_non_zero_mi…
Browse files Browse the repository at this point in the history
…ssing" (#6418)
  • Loading branch information
zuston committed Nov 20, 2020
1 parent 00218d0 commit cc581b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -282,7 +282,7 @@ object XGBoost extends Serializable {
s" set value $missing) when you have SparseVector or Empty vector as your feature" +
s" format. If you didn't use Spark's VectorAssembler class to build your feature " +
s"vector but instead did so in a way that preserves zeros in your feature vector " +
s"you can avoid this check by using the 'allow_non_zero_missing parameter'" +
s"you can avoid this check by using the 'allow_non_zero_for_missing parameter'" +
s" (only use if you know what you are doing)")
}
labeledPoint
Expand Down
Expand Up @@ -145,7 +145,7 @@ class MissingValueHandlingSuite extends FunSuite with PerTest {
}
}

test("specify a non-zero missing value but set allow_non_zero_missing " +
test("specify a non-zero missing value but set allow_non_zero_for_missing " +
"does not stop application") {
val spark = ss
import spark.implicits._
Expand Down

0 comments on commit cc581b3

Please sign in to comment.