Question: Write the code necessary to apply the following preprocessing steps ( 3 points ) : Define a recipe with name diamonds _ recipe 2 .

Write the code necessary to apply the following preprocessing steps (3 points):
Define a recipe with name diamonds_recipe2.
Make sure that price is your dependent variable and that you use all the other variables a predictors.
Log transform price and carat (use base 2).
Make sure infrequent values of all your nominal column are combined in an other category.
Create a volume column equal to x*y*z.
Keep only the rows with price bigger than $3000

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 Programming Questions!