感知機學習算法之Python實現

感知機學習算法的Python實現python training_set = [[(3, 3), 1], [(4, 3), 1], [(1, 1), -1]] w = [0, 0] b = 0 def cal_y(x): global w, b length = len(w) y = b for i in range(length): y = y
相關文章
相關標籤/搜索