เริ่มต้นใช้งานเริ่มต้นใช้งานได้ฟรี

Automating predictions on "new" houses

Let's now repeat what you did in the last exercise, but in an automated fashion assuming the information on these "new" houses is saved in a dataframe.

Your model for log10_price as a function of log10_size and the binary variable waterfront (model_price_4) is available in your workspace, and so is new_houses_2, a dataframe with data on 2 new houses. While not so beneficial with only 2 "new" houses, this will save a lot of work if you had 2000 "new" houses.

แบบฝึกหัดนี้เป็นส่วนหนึ่งของหลักสูตร

Modeling with Data in the Tidyverse

ดูคอร์ส

แบบฝึกหัดเชิงโต้ตอบแบบลงมือทำ

ลองทำแบบฝึกหัดนี้โดยเติมโค้ดตัวอย่างนี้ให้สมบูรณ์

# View the "new" houses
new_houses_2

# Get predictions on "new" houses
___
แก้ไขและรันโค้ด