感知機代碼實現(python版)

1、實現例子 李航《統計學方法》p29 例2.1 正例:x1=(3,3), x2=(4,3), 負例:x3=(1,1) 2、最終效果 3、代碼實現 import numpy as np import matplotlib.pyplot as plt p_x = np.array([[3, 3], [4, 3], [1, 1]]) y = np.array([1, 1, -1]) plt.figur
相關文章
相關標籤/搜索