Question
What is a StringIndexer used for?
Select an option. Your answer will be checked instantly.
Correct Answer: A. Mapping categorical string labels to numeric indices
Explanation:
Many machine-learning algorithms require numeric representations.
The fitted indexer preserves a consistent category mapping.
Leave a Reply