
Explanation:
The StringIndexer is crucial for converting textual data into numerical format, ensuring the categorical context is preserved. This conversion is essential for machine learning algorithms that operate on numerical inputs.
Ultimate access to all questions.
No comments yet.
Why is the StringIndexer used in machine learning?
A
To enhance string variables by appending numerical data
B
To transform textual data into numerical format without losing categorical meaning
C
Neither of the options is correct
D
Both options A and B are correct