2017-01-03から1日間の記事一覧

Playing with perceptron using Python

Perceptron code from ゼロから作るDeep Learning (def ANDの所) words.txt Hello my name is Tsubasa Kato. I like supercomputer.perceptron-test.py f = open ('words.txt') x1 = 0 x2 = 0 def AND(x1, x2): w1, w2, theta = 0.5, 0.5, 0.7 tmp = x1*w1 +…