การถดถอยเชิงเส้น: แบบฝึกหัดการเขียนโปรแกรม
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ในแบบฝึกหัดการเขียนโค้ดต่อไปนี้ คุณจะได้สร้างโมเดลการประมาณเชิงเส้นของคุณเองโดยใช้ห้องสมุด Keras
แบบฝึกหัดการเขียนโปรแกรมจะทำงานในเบราว์เซอร์โดยตรง (ไม่ต้องตั้งค่า) โดยใช้แพลตฟอร์ม Colaboratory Colaboratory ใช้งานได้ในเบราว์เซอร์หลักๆ โดยส่วนใหญ่ และผ่านการทดสอบเกือบทั่วทุกส่วนแล้วใน Chrome และ Firefox เวอร์ชันเดสก์ท็อป
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-03-11 UTC
[null,null,["อัปเดตล่าสุด 2025-03-11 UTC"],[[["\u003cp\u003eThis exercise focuses on building a linear regression model using the Keras library to predict values.\u003c/p\u003e\n"],["\u003cp\u003eThe coding exercise utilizes Google Colaboratory, a platform that allows you to run code directly in your browser without any setup.\u003c/p\u003e\n"],["\u003cp\u003eColaboratory is compatible with most browsers but works best with desktop versions of Chrome and Firefox.\u003c/p\u003e\n"],["\u003cp\u003eUsers can find more support and information on the Google Machine Learning Education Help Center.\u003c/p\u003e\n"]]],[],null,["# Linear regression: Programming exercise\n\nIn the following coding exercise, you'll build your own linear regression model\nusing the [Keras](https://keras.io/) library: \n[Open linear regression exercise](https://colab.research.google.com/github/google/eng-edu/blob/main/ml/cc/exercises/linear_regression_taxi.ipynb?utm_source=mlcc&utm_campaign=colab-external&utm_medium=referral&utm_content=linear_regression)\n\nProgramming exercises run directly in your browser (no setup\nrequired!) using the [Colaboratory](https://colab.research.google.com)\nplatform. Colaboratory is supported on most major browsers, and is most\nthoroughly tested on desktop versions of Chrome and Firefox. \n[Help Center](https://support.google.com/machinelearningeducation)"]]