LAMLStringIndexerModel
- class sparklightautoml.transformers.scala_wrappers.laml_string_indexer.LAMLStringIndexerModel(java_model=None)[source]
Bases:
JavaModel
,_StringIndexerModelParams
,CommonJavaToPythonMLReadable
,JavaMLWritable
Model fitted by
StringIndexer
.New in version 1.4.0.
- classmethod from_labels(labels, inputCol, outputCol=None, handleInvalid=None, defaultValue=0.0, freqLabel=False, nanLast=False)[source]
Construct the model directly from an array of label strings, requires an active SparkContext.
New in version 2.4.0.
- classmethod from_arrays_of_labels(arrayOfLabels, inputCols, outputCols=None, handleInvalid=None, defaultValue=0.0, freqLabel=False)[source]
Construct the model directly from an array of array of label strings, requires an active SparkContext.
New in version 3.0.0.
- property labels
Ordered list of labels, corresponding to indices to be assigned.
Deprecated since version 3.1.0: It will be removed in future versions. Use labelsArray method instead.
New in version 1.5.0.
- property labelsArray
Array of ordered list of labels, corresponding to indices to be assigned for each input column.
New in version 3.0.2.