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.

setInputCol(value)[source]

Sets the value of inputCol.

setInputCols(value)[source]

Sets the value of inputCols.

New in version 3.0.0.

setOutputCol(value)[source]

Sets the value of outputCol.

setOutputCols(value)[source]

Sets the value of outputCols.

New in version 3.0.0.

setHandleInvalid(value)[source]

Sets the value of handleInvalid.

New in version 2.4.0.

setDefaultValue(value)[source]

Sets the value of defaultValue.

New in version 3.2.0.

setFreqLabel(value)[source]

Sets the value of freqLabel.

New in version 3.2.0.

setNanLast(value)[source]

Sets the value of nanLast.

New in version 3.2.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.