July 2018
Intermediate to advanced
334 pages
8h 20m
English
Let's create labelIndexer now. This will create a new indexed input and output the columns label and indexedLabel, as follows:
val labelIndexer = new IndexToString().setInputCol("label").setOutputCol("indexedLabel").fit(input)
Next, let's transform our indexed labels back to the original labels that were not indexed.
Read now
Unlock full access