filmov
tv
AI Deep Learning NNfS 2. Coding a Layer

Показать описание
왜 bias는 오직 하나의 숫자일까요? 글쎄요, 그래서 우린 bias 선을 하나로 그어서 나타내는 거 아닐까요? weights 선은 여럿이 잖아요.
여기서 우린 4개의 inputs를 받아서 셈을 거쳐 3개의 neuron outputs를 만들어내는 matrix 셈법을 실습해봅니다. weights가 각기 다른 3 sets 이요, bias 또한 각기 다른 3 values 입니다. 어떻게 계산해낼까요? ㅋ 그냥 단순하게 셈 공식을 반복하면 나옵니다..^^
back propagation, calculating gradient 란 말과 이슈가 나오기 시작합니다. 우리가 그 수많은 weights, biases 값을 adjust 해내기 위해서 필요로 하는 기법 정도로 아시면 될텝니다.
inputs = [1, 2, 3, 2.5]
weights1 = [0.2, 0.8, -0.5, 1.0]
weights2 = [0.5, -0.91, 0.26, -0.5]
weights3 = [-0.26, -0.27, 0.17, 0.87]
bias1 = 2
bias2 = 3
bias3 = 0.5
output = [inputs[0]*weights1[0] + inputs[1]*weights1[1] + inputs[2]*weights1[2] + inputs[3]*weights1[3] + bias1,
inputs[0]*weights2[0] + inputs[1]*weights2[1] + inputs[2]*weights2[2] + inputs[3]*weights2[3] + bias2,
inputs[0]*weights3[0] + inputs[1]*weights3[1] + inputs[2]*weights3[2] + inputs[3]*weights3[3] + bias3]
print(output)
[4.8, 1.21, 2.385]
[Finished in 135ms]
여기서 우린 4개의 inputs를 받아서 셈을 거쳐 3개의 neuron outputs를 만들어내는 matrix 셈법을 실습해봅니다. weights가 각기 다른 3 sets 이요, bias 또한 각기 다른 3 values 입니다. 어떻게 계산해낼까요? ㅋ 그냥 단순하게 셈 공식을 반복하면 나옵니다..^^
back propagation, calculating gradient 란 말과 이슈가 나오기 시작합니다. 우리가 그 수많은 weights, biases 값을 adjust 해내기 위해서 필요로 하는 기법 정도로 아시면 될텝니다.
inputs = [1, 2, 3, 2.5]
weights1 = [0.2, 0.8, -0.5, 1.0]
weights2 = [0.5, -0.91, 0.26, -0.5]
weights3 = [-0.26, -0.27, 0.17, 0.87]
bias1 = 2
bias2 = 3
bias3 = 0.5
output = [inputs[0]*weights1[0] + inputs[1]*weights1[1] + inputs[2]*weights1[2] + inputs[3]*weights1[3] + bias1,
inputs[0]*weights2[0] + inputs[1]*weights2[1] + inputs[2]*weights2[2] + inputs[3]*weights2[3] + bias2,
inputs[0]*weights3[0] + inputs[1]*weights3[1] + inputs[2]*weights3[2] + inputs[3]*weights3[3] + bias3]
print(output)
[4.8, 1.21, 2.385]
[Finished in 135ms]
AI Deep Learning NNfS 2. Coding a Layer
AI Deep Learning NNfS 1. Intro and Neuron
AI Deep Learning NNfS 4. Batches, layers, and objects
AI Deep Learning NNfS 5. Hidden layer activation functions
Neural Networks from Scratch (NNFS) in Print!
AI Deep Learning NNfS 8. Implementing Loss
AI Deep Learning NNfS 3. The Dot product
AI Deep Learning NNfS 6. Softmax activation
Neural Networks from scratch | using c++ | nnfs
TensorFlow 2.0 Complete Course - Python Neural Networks for Beginners Tutorial
NNFS Update #2: Content done
I Built a Neural Network from Scratch
The COOLEST Deep Learning Machine - The Comino Grando RM V2 Short
even the AI cops were impressed
AI Deep Learning NNfS 7. Calculating Loss w/ Categorical Cross-Entropy
WHERE NNFS?! Signed 3090 & Upcoming Content
Coding feed forward network | Neural Networks from scratch | using c++ | nnfs | part 1
Introducing Retiarii: A deep learning exploratory-training framework on NNI
Neural Networks from Scratch - P.2 Coding a Layer
Why & how two or more hidden layers w/ nonlinear activation function works deep learning (MVP 00...
Started Creating an NFS:MW AI using Deep Reinforcement Learning
Neural Networks from Scratch - P.4 Batches, Layers, and Objects
Neural Networks from Scratch - P.1 Intro and Neuron Code
Does a Deep Learning Laptop Exist? - Tensorbook Review
Комментарии