Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Databricks Exam Databricks-Machine-Learning-Associate Topic 2 Question 11 Discussion

Actual exam question for Databricks's Databricks-Machine-Learning-Associate exam
Question #: 11
Topic #: 2
[All Databricks-Machine-Learning-Associate Questions]

A data scientist has a Spark DataFrame spark_df. They want to create a new Spark DataFrame that contains only the rows from spark_df where the value in column price is greater than 0.

Which of the following code blocks will accomplish this task?

Show Suggested Answer Hide Answer
Suggested Answer: C

Random Forest is a machine learning algorithm that typically uses bagging (Bootstrap Aggregating). Bagging is a technique that involves training multiple base models (such as decision trees) on different subsets of the data and then combining their predictions to improve overall model performance. Each subset is created by randomly sampling with replacement from the original dataset. The Random Forest algorithm builds multiple decision trees and merges them to get a more accurate and stable prediction.


Databricks documentation on Random Forest: Random Forest in Spark ML

Contribute your Thoughts:

Danilo
2 days ago
Looks like we need to 'filter' out the wrong answers here. Time to get 'Spark'ling!
upvoted 0 times
...
Josphine
10 days ago
But A uses boolean indexing to filter rows based on a condition, which is what we need in this case.
upvoted 0 times
...
Yolande
14 days ago
I disagree, I believe the correct answer is B.
upvoted 0 times
...
Halina
15 days ago
Pun Master
upvoted 0 times
Mitsue
4 days ago
A) spark_df[spark_df[\'price\'] > 0]
upvoted 0 times
...
...
Josphine
24 days ago
I think the correct answer is A.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77