Misleading exception information: no such param of "allow_non_zero_missing" (#6418)

This commit is contained in:
zhang_jf 2020-11-20 19:33:34 +08:00 committed by GitHub
parent 00218d065a
commit cc581b3b6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -282,7 +282,7 @@ object XGBoost extends Serializable {
s" set value $missing) when you have SparseVector or Empty vector as your feature" + 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" 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"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)") s" (only use if you know what you are doing)")
} }
labeledPoint labeledPoint

View File

@ -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") { "does not stop application") {
val spark = ss val spark = ss
import spark.implicits._ import spark.implicits._