2D函数优化实例&Logistic Regression 1、2D函数优化实例 2、交叉熵 1、2D函数优化实例 import numpy as np from mpl_toolkits.mplot3d import Axes3D from matplotlib import pyplot as plt import torch def himmelblau(x): return (x[0] ** 2 + x[1] - 11) ** 2 + (x[