StringIndexerModel (Spark 3.5.5 JavaDoc) (original) (raw)


public class StringIndexerModel
extends Model<StringIndexerModel>
implements StringIndexerBase, MLWritable
Model fitted by StringIndexer.
param: labelsArray Array of ordered list of labels, corresponding to indices to be assigned for each input column.
See Also:
Serialized Form
Note:
During transformation, if any input column does not exist,StringIndexerModel.transform would skip the input column. If all input columns do not exist, it returns the input dataset unmodified. This is a temporary fix for the case when target labels do not exist during prediction.