Python3.6.4 實現感知機代碼(與算法)

利用python實現感知機功能,簡單的與運算即[1,1]->1,[1,0]->0,[0,1]->0,[0,0]->0。代碼實現環境,windows下,python3.6 代碼以下: import numpy as np class Perceptron(object): def __init__(self,input_num,activator): self.a
相關文章
相關標籤/搜索