
밑바닥부터 시작하는 딥러닝 4장 - 신경망 학습
·
공부정리/Deep learnig & Machine learning
학습 알고리즘 구현하기 -2층 신경망 클래스 구현하기 클래스의 이름은 TwoLayerNet이다. import sys, os sys.path.append(os.pardir) from common.functions import \* from common.gradient import numerical\_gradient class TwoLayerNet: def \_\_init\_\_(self, input\_size, hidden\_size, output\_size, weight\_init\_std=0.01): self.params = {} self.params\['W1'\] = weight\_init\_std \* np.random.randn(input\_size, hidden\_size) self.params..