Which of the following code blocks will accomplish this task?

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?A . spark_df[spark_df["price"] > 0]B . spark_df.filter(col("price") >...

August 23, 2024 No Comments READ MORE +

In which of the following situations is it preferable to impute missing feature values with their median value over the mean value?

In which of the following situations is it preferable to impute missing feature values with their median value over the mean value?A . When the features are of the categorical typeB . When the features are of the boolean typeC . When the features contain a lot of extreme outliersD...

August 23, 2024 No Comments READ MORE +

Which of the following lines of code will return the metadata description?

A machine learning engineer has created a Feature Table new_table using Feature Store Client fs. When creating the table, they specified a metadata description with key information about the Feature Table. They now want to retrieve that metadata programmatically. Which of the following lines of code will return the metadata...

August 21, 2024 No Comments READ MORE +

Which of the following changes can the data scientist make to accomplish the task?

A data scientist is attempting to tune a logistic regression model logistic using scikit-learn. They want to specify a search space for two hyperparameters and let the tuning process randomly select values for each evaluation. They attempt to run the following code block, but it does not accomplish the desired...

August 20, 2024 No Comments READ MORE +

Which of the following is a negative consequence of the approach suggested by the colleague?

A machine learning engineer is trying to scale a machine learning pipeline pipeline that contains multiple feature engineering stages and a modeling stage. As part of the cross-validation process, they are using the following code block: A colleague suggests that the code block can be changed to speed up the...

August 16, 2024 No Comments READ MORE +