使用tensorflow预测数据回归曲线 1、效果图 2、流程 1、读取数据 2、输入层一个神经元,输出层一个神经元,中间 10 个 3、设置第一层、第二层神经元 4、构建损失函数 5、训练 6、画图 3、代码 # !/usr/bin/python # -*- coding: utf-8 -*- """ @contact: 微信 1257309054 @file: tensorflow预测数据回归曲线.py @time: 2024/4/16 13:14 @author: LDC """ import tensorflow.compat.