신경망 처음부터 끝까지 구현하기 03
%run /content/MathUtils.ipynb
def init_param():
global weight, bias
weight_initial = []
bias_initial = []
# 평균이 RND_MEAN이고 표준편차가 RND_STD인 input_cnt행 output_cnt열 가중치 행렬 생성
weight = np.random.normal(RND_MEAN, RND_STD, size = [input_cnt, output_cnt])
# 값이 0인 output_cnt개 편향 행 생성
bias = np.zeros([output_cnt])
print("Initial Weight Value : \n{}".format(weight))
print("Initial Bias Value : \n{}".format(bias))
weight_initial.append(weight)
bias_initial.append(bias)
return weight_initial, bias_initial
weight_initial, bias_initial = init_param()