Question: Use Spark API to build a decision tree classifier and train it on 80% of the samples and provide accuracy results using 20% of the

Use Spark API to build a decision tree classifier and train it on 80% of the samples and provide accuracy results using 20% of the samples. The Spark DataFrame (DF) has 10000 samples, four features (F1,F2,F3,F4), and the label has three classes ( 0,1,2) as given below. You can use Spark API website and Google Colab to develop your code

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!