摘要:
阅读全文
摘要:
一元回归: 1 import numpy as np 2 import matplotlib.pyplot as plt 3 import tensorflow as tf 4 5 #加载数据集 6 boston_housing = tf.keras.datasets.boston_housing 阅读全文
摘要:
其中,GradientTape(persistent=False, watch_accessed_variables=False)有两个参数:persistent和watch_accessed_variables persistent: 布尔值,用来指定新创建的gradient tape是否是可持续 阅读全文
摘要:
下面是一个梯度下降法对多元问题的求解: 1 import numpy as np 2 import matplotlib.pyplot as plt 3 plt.rcParams['font.sans-serif'] = ['Simhei'] 4 5 area = np.array([137.97, 阅读全文