728x90 반응형 SMALL 수치 미분2 [AI] 수치 해석 수치 미분 (Numerical Derivative) 데이터 관점에서 미분은 loss를 줄이기 위해 x를 조금씩 변화시키는 것이다. import numpy as np # 미분 함수 def numerical_derivative(f, x): delta_x = 1e-4 grad = np.zeros_like(x) it = np.nditer(x, flags=['multi_index'], op_flags=['readwrite']) while not it.finished: idx = it.multi_index tmp_val = x[idx] x[idx] = float(tmp_val) + delta_x fx1 = f(x) # f(x+delta_x) x[idx] = float(tmp_val) - delta_x fx2 = f.. 2022. 7. 10. [AI] 러닝 아키텍처 러닝 아키텍처 학습이란, 계산 값 Y와 정답 T와의 차이를 나타내는 손실 값 (또는 손실함수) loss가 최소가 될 때까지 가중치 W와 bias b를 최적화시키는 과정이다. 손실 함수 (Loss function) MAE MSE RMSE BCE CCE GAN YOLO 개발 프로세스 1. Data Preparation 2. Initialize weights and bias 3. define loss function and output, y 4. learning for epochs for steps 5. evaluate and predict 아키텍처 Linear Regression Logistic Regression Deep Learning 2022. 7. 9. 이전 1 다음 728x90 반응형 LIST