import tensorflow as tf
import numpy as np
# 使用numpy生成100个随机点
x_data = np.random.rand(100)
# 下面的公式相当于一条直线,斜率是0.1,偏移量是0.2
y_data = x_data * 0.1 + 0.2
import tensorflow as tf
import numpy as np
# 使用numpy生成100个随机点
x_data = np.random.rand(100)
# 下面的公式相当于一条直线,斜率是0.1,偏移量是0.2
y_data = x_data * 0.1 + 0.2