ComeçarComece de graça

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 exercício faz parte do curso

Modeling with tidymodels in R

Ver curso

Exercício interativo prático

Experimente este exercício completando este código de exemplo.

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

# View predicted selling prices
home_predictions
Editar e executar o código