ݺߣ

ݺߣShare a Scribd company logo
Metody Deep Learning
Autoencoders
1.Feed Forward NN
2. NN - training
3. Probabilistic
graphical models
4. Restricted
Boltzmann machines
5. Autoencoders
6. Deep learning
7. Convolutional
NNs
Dlaczego?
Przykład: redukcja
wymiarowości - PCA
Przykład: redukcja
wymiarowości - DAE
Autoencoder
W
W⇤
= WT
Decoder
Encoder
ˆx = sigm(c + W⇤
h(x))
h(x) = sigm(b + Wx)x
h(x)
ˆx
Loss function
• dla danych binarnych
• dla danych liniowych
l(x, ˆx) =
X
k
(xk log (ˆxk) + (1 xk) log (1 ˆxk))
l(x, ˆx) =
1
2
X
k
(xk ˆxk)2
Trenowanie
• możemy minimalizować koszt metodą gradient descent
• dla obu przypadków funkcji kosztu gradient względem
aktywacji ma taką samą formę:
Oa(x)l(x, ˆx) = ˆx x
• gradienty wag oraz biasów możemy uzyskać propagacją
wsteczną
Adaptacja do wejścia
• wybieramy łączny rozkład nad wejściem p(x | µ)
gdzie µ to wektor parametrów tego rozkładu
• wybieramy relację pomiędzy wektorem µ
i ukrytą warstwą h(x)
• użyj jako funkcji kosztu:
l(x) = log p(x | µ)
Jaka może być
warstwa ukryta?
Undercomplete Hidden
Layer
• warstwa ukryta kompresuje wejście
W
W⇤
= WT
• warstwa ukryta dobrze modeluje dane
treningowe, ale źle inne wejścia
Overcomplete Hidden Layer
W
W⇤
= WT
• nie ma kompresji w warstwie środkowej
• warstwa ukryta może nauczyć się identyczności
• nie ma gwarancji, że ukryte jednostki nauczą się
znaczącej reprezentacji
Jak zapobiec uczeniu
się Գٲ⳦Դś?
Idea: reprezentacja
odporna na szum
Denoising autoencoder
W
W⇤
= WT
x
h(x)
ˆx
˜x
p(˜x | x)
• dodajemy szum do
wejścia
• rekonstrukcja obliczana z
zaszumionego wejścia
• loss function porównuje
rekontrukcję z
autentycznym wejściem
Intuicja
x
x˜x
˜x
ˆx = sigm(c + Wh(˜x))
p(˜x | x)
• Stacked Denoising Autoencoders: Learning
Useful Representations in a Deep Network with a
Local Demonising Criterion - Vincent, Larochelle,
Lajoie, Bengio Manzagol, 2008
• A Connection Between Score Matching and
Denoising Autoencoders - Vincent, 2011
Filtry
(Vincent, Larochelle, Bengio i Manzagol, ICML 2008)
• bez szumu
Filtry
(Vincent, Larochelle, Bengio i Manzagol, ICML 2008)
• 25% szumu
Filtry
(Vincent, Larochelle, Bengio i Manzagol, ICML 2008)
• 50% szumu
Idea: karanie
modelowania wszystkich
danych
Contractive Autoencoder
W
W⇤
= WT
h(x)
ˆx
˜x
• dodajemy składnik do funkcji kosztu,
który penalizuje nieinteresujące nas
rozwiązania
• chcemy ekstrachować tylko cechy, które
odzwierciedlają wariacje danych ze
zbioru treningowego
• model ma być inwariantny na inne
wariacje
Contractive Autoencoder
l(x, ˆx) + kOxh(x)k
2
F
Nowa funkcja kosztu:
Dla binarnych obserwacji:
l(x, ˆx) =
X
k
(xk log (ˆxk) + (1 xk) log (1 ˆxk))
kOxh(x)k
2
F =
X
j
X
k
(
@h(x)j
@xk
)2
Intuicja
encoder musi być wrażliwy
na takie wariecje, żeby
dobrze rekonstruować dane
encoder nie powinien być
wrażliwy na wariację nie
zaobserwowaną w zbiorze
treningowym
Contractive Auto-Encoders:
Explicit Invariance During Feature
Extraction - Rifai, Vincent, Muller,
Glorot, Bengio, 2011
Demo
https://github.com/Craftinity/DA-
AGH
Ad

Recommended

Wzory na pochodne
Wzory na pochodne
taskbook
Wzory na całki
Wzory na całki
taskbook
Wzory na calki
Wzory na calki
Paweł Szewczuk
Metody Deep Learning - Wykład 1
Metody Deep Learning - Wykład 1
Craftinity
Metody Deep Learning - Wykład 7
Metody Deep Learning - Wykład 7
Craftinity
2024 Trend Updates: What Really Works In SEO & Content Marketing
2024 Trend Updates: What Really Works In SEO & Content Marketing
Search Engine Journal
Storytelling For The Web: Integrate Storytelling in your Design Process
Storytelling For The Web: Integrate Storytelling in your Design Process
Chiara Aliotta
Artificial Intelligence, Data and Competition – SCHREPEL – June 2024 OECD dis...
Artificial Intelligence, Data and Competition – SCHREPEL – June 2024 OECD dis...
OECD Directorate for Financial and Enterprise Affairs
How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR...
How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR...
SocialHRCamp
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Skeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC

More Related Content

Featured (20)

2024 Trend Updates: What Really Works In SEO & Content Marketing
2024 Trend Updates: What Really Works In SEO & Content Marketing
Search Engine Journal
Storytelling For The Web: Integrate Storytelling in your Design Process
Storytelling For The Web: Integrate Storytelling in your Design Process
Chiara Aliotta
Artificial Intelligence, Data and Competition – SCHREPEL – June 2024 OECD dis...
Artificial Intelligence, Data and Competition – SCHREPEL – June 2024 OECD dis...
OECD Directorate for Financial and Enterprise Affairs
How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR...
How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR...
SocialHRCamp
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Skeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
2024 Trend Updates: What Really Works In SEO & Content Marketing
2024 Trend Updates: What Really Works In SEO & Content Marketing
Search Engine Journal
Storytelling For The Web: Integrate Storytelling in your Design Process
Storytelling For The Web: Integrate Storytelling in your Design Process
Chiara Aliotta
How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR...
How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR...
SocialHRCamp
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray

Metody Deep Learning - Wykład 6