QuestionQ49
VerifiedModel DevelopmentA data scientist has built a three-class decision-tree classifier with Spark ML and generated predictions in a Spark DataFrame, preds_df, with this schema:
prediction DOUBLE
actual DOUBLE
Which code block can compute the model’s accuracy from the data in preds_df and store it in the accuracy variable?
Community Discussion