線性迴歸:程式設計練習
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
在下列程式碼練習中,您將使用 Keras 程式庫建構自己的線性迴歸模型:
您可以使用 Colaboratory 平台,直接在瀏覽器中執行程式設計練習 (無須進行設定)。Colaboratory 支援大多數主流瀏覽器,且在 Chrome 和 Firefox 電腦版上經過最徹底的測試。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-03-11 (世界標準時間)。
[null,null,["上次更新時間:2025-03-11 (世界標準時間)。"],[[["\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)"]]