[CNN]tensorflow 없이 numpy로만 convolution 날코딩 하기
import numpy as np from matplotlib import pyplot as plt class NN: def __init__(self,n_i,n_h,n_y): self.w1 = np.random.rand(n_i,n_h) self.w2 = np.random.rand(n_h,n_y) def sigmoid(self,z): return 1./(1.+np.exp(-z)) def dsigmoid(self,z): # sigmoid 미분 return z*(1. - z) def layer(self,inputs): print('self.sigmoid(np.dot(inputs,self.w1))') self.hidden = self.sigmoid(np.dot(inputs,self.w1)) print(self...
2020. 11. 10.