ComenzarEmpieza gratis

Predicting home selling prices

After fitting a model using the training data, the next step is to use it to make predictions on the test dataset. The test dataset acts as a new source of data for the model and will allow you to evaluate how well it performs.

Before you can evaluate model performance, you must add your predictions to the test dataset.

In this exercise, you will use your trained model, lm_fit, to predict selling_price in the home_test dataset.

Your trained model, lm_fit, as well as the test dataset, home_test have been loaded into your session.

Este ejercicio forma parte del curso

Modeling with tidymodels in R

Ver curso

Ejercicio interactivo práctico

Prueba este ejercicio y completa el código de muestra.

# Predict selling_price
home_predictions <- ___(___,
                        new_data = ___)

# View predicted selling prices
home_predictions
Editar y ejecutar código