Skip to content

Commit b6a36b9

Browse files
committed
add doc
1 parent f143fd4 commit b6a36b9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mllib/src/main/scala/org/apache/spark/ml/feature/StringIndexer.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ class StringIndexer(override val uid: String) extends Estimator[StringIndexerMod
8888
/**
8989
* :: Experimental ::
9090
* Model fitted by [[StringIndexer]].
91+
* NOTE: During transformation, if the input column does not exist,
92+
* [[StringIndexerModel.transform]] would return the input dataset unmodified.
93+
* This is a temporary fix for the case when target labels do not exist during prediction.
9194
*/
9295
@Experimental
9396
class StringIndexerModel private[ml] (

0 commit comments

Comments
 (0)