파이썬 코드 import numpy as np def AND(x1,x2): x = np.array([x1, x2]) # 입력값 w = np.array([0.5,0.5]) # 가중치 b = -0.7 # 편향 tmp = np.sum(x*w) + b if tmp
# 가중치와 편향 구현 def AND(x1,x2): x = np.array([x1, x2]) # 입력값 w = np.array([0.5,0.5]) # 가중치 b = -0.7 # 편향 tmp = np.sum(x*w) + b if tmp
최근댓글