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

เทรนโมเดลด้วยข้อมูลการแข่งขันในฤดูกาลปกติ

เมื่อกำหนดโมเดลความแข็งแกร่งของทีมครบถ้วนแล้ว ก็ถึงเวลาเทรนโมเดลด้วยข้อมูลบาสเกตบอล เนื่องจากโมเดลมี input สองชุด จึงต้องส่งข้อมูล input ในรูปแบบ list

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

Deep Learning ขั้นสูงด้วย Keras

ดูคอร์ส

คำแนะนำการฝึกหัด

  • กำหนดคอลัมน์ 'team_1' และ 'team_2' จาก games_season ให้กับ input_1 และ input_2 ตามลำดับ
  • ใช้คอลัมน์ 'score_diff' จาก games_season เป็น target
  • เทรนโมเดลโดยใช้ 1 epoch, batch size ที่ 2048 และแบ่งข้อมูล validation 10%

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

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

# Get the team_1 column from the regular season data
input_1 = games_season[___]

# Get the team_2 column from the regular season data
input_2 = games_season[___]

# Fit the model to input 1 and 2, using score diff as a target
____(____,
          ____,
          epochs=____,
          batch_size=____,
          validation_split=____,
          verbose=True)
แก้ไขและรันโค้ด