摘要:
代码 import numpy as np import matplotlib.pyplot as plt import matplotlib as mpl mpl.rcParams['font.sans-serif'] = [u'SimHei'] #FangSong/黑体 FangSong/Kai 阅读全文
摘要:
代码 import numpy as np import matplotlib.pyplot as plt t = np.linspace(0, 2*np.pi, 100) x = 16 * np.sin(t) ** 3 y = 13 * np.cos(t) - 5 * np.cos(2*t) - 阅读全文
摘要:
一、代码 # 损失函数:Logistic损失(-1,1)/SVM Hinge损失/ 0/1损失 import numpy as np import matplotlib.pyplot as plt import math plt.figure(figsize=(5,4)) x = np.linspa 阅读全文
摘要:
代码 import numpy as np import matplotlib.pyplot as plt import matplotlib as mpl import math mpl.rcParams['font.sans-serif'] = [u'SimHei'] #FangSong/黑体 阅读全文