基本回归:预测燃油效率print(tf.version)从标签中分离特征数据规范化模型构建模型检查模型训练模型通过为每个完成的时期打印一个点来显示训练进度patience 值用来检查改进 epochs 的数量测试集中表现做预测
“”"Basic regression: Predict fuel efficiency汽车燃油效率“”"import pathlibimport matplotlib.pyplot as pltimport pandas as pdimport seaborn as snsimport tensorflow as tffrom tensorflow import kerasfrom tensorflow.keras import layersprint(tf.version