---
title: "Discussion on \"TensorFlow 2 Keras实现线性回归\" | Hashnode"
description: "Discussion on \"TensorFlow 2 Keras实现线性回归\". 介绍\n线性回归是入门机器学习必学的算法，其也是最基础的算法之一。\n接下来，我们以线性回归为例，使用 TensorFlow 2 提供的 API 和 Eager Execution 机制对其进行实现。\n线性回归是一种较为简单，但十分重要的机器学习方法，它也是神经网络的基础。\n如下所示，线性回归要解决的问题就是如何找到最理想的直线去拟合散点样本。\n\n对于一个线性回归问题，一般来讲有 2 种解决方法，分别是：\n\n最小二乘法\n代数求解\n矩阵求解\n\n\n梯度下降法。\n\n本次，我们将使用梯度下降方法来解决线性回..."
url: "https://hashnode.com/posts/tensorflow-2-keras/618c7f7cf991b025366e1ea6"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [TensorFlow 2 Keras实现线性回归](https://uiuing.hashnode.dev/tensorflow-2-keras?utm_source=hashnode&utm_medium=feed)

介绍 线性回归是入门机器学习必学的算法，其也是最基础的算法之一。 接下来，我们以线性回归为例，使用 TensorFlow 2 提供的 API 和 Eager Execution 机制对其进行实现。 线性回归是一种较为简单，但十分重要的机器学习方法，它也是神经网络的基础。 如下所示，线性回归要解决的问题就是如何找到最理想的直线去拟合散点样本。 对于一个线性回归问题，一般来讲有 2 种解决方法，分别是： 最小二乘法 代数求解 矩阵求解 梯度下降法。 本次，我们将使用梯度下降方法来解决线性回...

Oct 12, 2021 · 1 min read · uiuing.hashnode.dev  
Updated Nov 13, 2021  
Read the article

## Written by

[uiu](https://hashnode.com/@uiuing)

@uiuing

  
[View profile](https://hashnode.com/@uiuing)

Free developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
