A data scientist has designed a three-class databricks video
ml-engineer-associate video for a data scientist has designed a three-class decision tree classifier utilizing Spark MLandcomputed the predictions in a Spark
Answer
          Full Certification Question
A data scientist has designed a three-class decision tree classifier utilizing Spark MLandcomputed the predictions in a Spark DataFrame, named preds_dt, with the following schema: prediction DOUBLE, actual DOUBLE. Which code segment can be used to calculate the accuracy of the model based on the data in preds_dt and assign the result to the accuracy variable? Choose only ONE best answer.