機器學習算法之自適應線性感知器算法

自適應線性感知器算法 原理推導 python實現 import numpy as np import matplotlib.pyplot as plt #隨機生成x和y, n=100, m=2 x = np.random.randn(100, 2) y = x.dot(np.array([[2], [1]])) + 1 #初始話權值w和偏置b w = np.zeros(x.shape[1]).
相關文章
相關標籤/搜索