摘要: 代码 import numpy as np import matplotlib.pyplot as plt import matplotlib as mpl mpl.rcParams['font.sans-serif'] = [u'SimHei'] #FangSong/黑体 FangSong/Kai 阅读全文
posted @ 2020-06-19 19:13 小他_W 阅读(226) 评论(0) 推荐(0) 编辑
摘要: 代码 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) - 阅读全文
posted @ 2020-06-19 18:59 小他_W 阅读(641) 评论(0) 推荐(0) 编辑
摘要: 一、代码 # 损失函数: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 阅读全文
posted @ 2020-06-19 18:50 小他_W 阅读(1220) 评论(0) 推荐(0) 编辑
摘要: 代码 import numpy as np import matplotlib.pyplot as plt import matplotlib as mpl import math mpl.rcParams['font.sans-serif'] = [u'SimHei'] #FangSong/黑体 阅读全文
posted @ 2020-06-19 18:36 小他_W 阅读(715) 评论(0) 推荐(0) 编辑