August 2017
Beginner to intermediate
340 pages
8h 42m
English
Spark algorithms can handle different forms of categorical features, but they need to be transformed into a form expected by an algorithm. For example, decision trees can handle categorical features as they are; on the other hand, linear regression or neural networks need to expand categorical values into binary columns.
In this example, the good news is that all input features in our dataset are continuous. However, the target feature - activityId - represents multi-class features. The Spark MLlib classification guide (https://spark.apache.org/docs/latest/mllib-linear-methods.html#classification) says:
Read now
Unlock full access