import torch import numpy as np import matplotlib.pyplot as plt fig = plt.figure() ax = plt.axes(projection="3d") # 创建a和b的值的网格 a_values = np.linspace(-20, 20, 100) b_values = np.linspace(-20, 20, 100) a, b = np.meshgrid(a_values, b_values) SSE = (2 - a - b) ** 2 + (4 - 3 * a - b) ** 2...

阅读全文>>