Skip to content

Commit

Permalink
Update xgboost4j_spark_tutorial.rst (dmlc#4476)
Browse files Browse the repository at this point in the history
  • Loading branch information
CodingCat authored and hcho3 committed May 17, 2019
1 parent cf24000 commit adcd8ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/jvm/xgboost4j_spark_tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,9 @@ Example of setting a missing value (e.g. -999) to the "missing" parameter in XGB
.. note:: Using 0 to represent meaningful value

Due to the fact that Spark's VectorAssembler transformer only accepts 0 as a missing values, this one creates a problem when the user has 0 as meaningful value plus there are enough 0's to use SparseVector (However, In case the dataset is represented by a DenseVector, the 0 is kept)
Due to the fact that Spark's VectorAssembler transformer only accepts 0 as a missing values, this one creates a problem when the user has 0 as meaningful value plus there are enough 0's to use SparseVector (However, In case the dataset is represented by a DenseVector, the 0 is kept)

In this case, users are also supposed to transform 0 to some other values to avoid the issue.
In this case, users are also supposed to transform 0 to some other values to avoid the issue.

Training
========
Expand Down

0 comments on commit adcd8ea

Please sign in to comment.