Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
Image classification
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Chellali Tariq
Image classification
Commits
1d8e2c4a
Commit
1d8e2c4a
authored
1 year ago
by
toto
Browse files
Options
Downloads
Patches
Plain Diff
last results of mlp
parent
a471526b
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+0
-26
0 additions, 26 deletions
README.md
main.py
+1
-1
1 addition, 1 deletion
main.py
results/mlp1.png
+0
-0
0 additions, 0 deletions
results/mlp1.png
with
1 addition
and
27 deletions
README.md
+
0
−
26
View file @
1d8e2c4a
...
...
@@ -43,32 +43,6 @@ Ces fonctions permettent de calculer la précision de l'algorithme k-NN pour dif
### Backpropagation in a Neural Network
#### Partial Derivatives with Chain Rule
1.
**\(\frac{\partial C}{\partial A^{(2)}}\)**
:
\(\f
rac{
\p
artial C}{
\p
artial A^{(2)}} =
\f
rac{2}{N_{out}}(
\h
at{Y} - Y)
\)
2.
**\(\frac{\partial C}{\partial Z^{(2)}}\)**
:
\(\f
rac{
\p
artial C}{
\p
artial Z^{(2)}} =
\f
rac{2}{N_{out}}(
\h
at{Y} - Y)
\c
dot
\s
igma(Z^{(2)})
\c
dot (1 -
\s
igma(Z^{(2)}))
\)
3.
**\(\frac{\partial C}{\partial W^{(2)}}\)**
:
\(\f
rac{
\p
artial C}{
\p
artial W^{(2)}} =
\f
rac{
\p
artial C}{
\p
artial Z^{(2)}}
\c
dot A^{(1)T}
\)
4.
**\(\frac{\partial C}{\partial B^{(2)}}\)**
:
\(\f
rac{
\p
artial C}{
\p
artial B^{(2)}} =
\f
rac{
\p
artial C}{
\p
artial Z^{(2)}}
\)
5.
**\(\frac{\partial C}{\partial A^{(1)}}\)**
:
\(\f
rac{
\p
artial C}{
\p
artial A^{(1)}} = (W^{(2)T}
\c
dot
\f
rac{
\p
artial C}{
\p
artial Z^{(2)}})
\)
6.
**\(\frac{\partial C}{\partial Z^{(1)}}\)**
:
\(\f
rac{
\p
artial C}{
\p
artial Z^{(1)}} =
\f
rac{
\p
artial C}{
\p
artial A^{(1)}}
\c
dot
\s
igma'(Z^{(1)})
\)
7.
**\(\frac{\partial C}{\partial W^{(1)}}\)**
:
\(\f
rac{
\p
artial C}{
\p
artial W^{(1)}} =
\f
rac{
\p
artial C}{
\p
artial Z^{(1)}}
\c
dot A^{(0)T}
\)
8.
**\(\frac{\partial C}{\partial B^{(1)}}\)**
:
\(\f
rac{
\p
artial C}{
\p
artial B^{(1)}} =
\f
rac{
\p
artial C}{
\p
artial Z^{(1)}
\)
# Neural Network Training and Testing Overview
...
...
This diff is collapsed.
Click to expand it.
main.py
+
1
−
1
View file @
1d8e2c4a
from
read_cifar
import
read_cifar
,
split_dataset
from
knn
import
evaluate_knn_for_k
,
plot_accuracy_versus_k
import
matplotlib.pyplot
as
plt
from
mlp
2
import
run_mlp_training
,
plot_accuracy_versus_epoch
from
mlp
import
run_mlp_training
,
plot_accuracy_versus_epoch
...
...
This diff is collapsed.
Click to expand it.
results/mlp1.png
0 → 100644
+
0
−
0
View file @
1d8e2c4a
55.1 KiB
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment