Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Loïc Barrault
supports_cours
Commits
ded66428
Commit
ded66428
authored
Dec 03, 2019
by
Loïc Barrault
Browse files
TP L6 + changes
parent
62929611
Changes
6
Show whitespace changes
Inline
Side-by-side
m1_aan/mlp/figures/BpMlp.pdf
View file @
ded66428
No preview for this file type
text_processing/resources/john_smith_NER.docx
0 → 100644
View file @
ded66428
File added
text_processing/text_processing.tex
View file @
ded66428
...
@@ -94,7 +94,7 @@
...
@@ -94,7 +94,7 @@
%\input{ie_ner.tex} % end of 5th lecture + 6th lecture
%\input{ie_ner.tex} % end of 5th lecture + 6th lecture
%\input{ie_relation_extraction.tex} % 7th lecture
%\input{ie_relation_extraction.tex} % 7th lecture
\input
{
t
p
_
nn.tex
}
\input
{
t
extproc
_
nn.tex
}
\input
{
sa
_
extra
_
reading
}
\input
{
sa
_
extra
_
reading
}
...
...
text_processing/text_processing_L6.tex
View file @
ded66428
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
Department of Computer Science
\\
Department of Computer Science
\\
}
}
\date
{
Nov
ember
26
, 2019
}
\date
{
Dec
ember
3
, 2019
}
\begin{document}
\begin{document}
...
...
text_processing/text_processing_L7.tex
0 → 100644
View file @
ded66428
\documentclass
[aspectratio=169,t,xcolor=table]
{
beamer
}
%\documentclass[t]{beamer}
%\documentclass[handout,t]{beamer}
\mode
<presentation>
{
%\usetheme{PaloAlto}
% \usetheme{Hannover}
\usetheme
{
informatics
}
\useoutertheme
{
infolines
}
% \setbeamercovered{transparent} % or whatever (possibly just delete it)
}
\setbeamertemplate
{
navigation symbols
}{}
\setlength
{
\extrarowheight
}{
3pt
}
\input
{
../LatexColors.incl.tex
}
\input
../mycolors.tex
\input
../macros.tex
\input
../macros
_
en.tex
\input
../macros
_
beamer.tex
\usepackage
{
setspace
}
%\setbeamercovered{transparent}
\usepackage
[absolute,showboxes,overlay]
{
textpos
}
%\TPshowboxestrue % commenter une fois fini
\TPshowboxesfalse
% décommenter pour faire disparaitre les boites
\textblockorigin
{
10mm
}{
10mm
}
% origine des positions
% This is only inserted into the PDF information catalog. Can be left out.
\subject
{
COM3110/Text Processing
}
\title
[]
{
[Text Processing]
\\
Deep Learning
}
\author
[L. Barrault]
{
Loïc Barrault
}
\institute
[University of Sheffield]
{
l.barrault@sheffield.ac.uk
\\
Department of Computer Science
\\
}
\date
{
December 3, 2019
}
\begin{document}
\begin{frame}
\titlepage
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\input{textproc_introduction}
\input
{
textproc
_
nn.tex
}
%\input{extra_reading}
% and kill the abominable icon
\setbeamertemplate
{
bibliography item
}{}
\begin{frame}
[allowframebreaks]
\frametitle
{
References
}
% \bibliographystyle{amsalpha}
% \bibliographystyle{apalike}
\bibliographystyle
{
IEEEtran
}
{
\footnotesize
\bibliography
{
refs,refs
_
sa
}
}
\end{frame}
\end{document}
text_processing/t
p
_nn.tex
→
text_processing/t
extproc
_nn.tex
View file @
ded66428
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
\vfill
\vfill
\centering
\centering
\Huge
{
\edinred
{
Text processing
\\
Deep Learning
}}
\Huge
{
\edinred
{
[
Text processing
]
\\
Deep Learning
}}
\end{frame}
\end{frame}
...
@@ -59,45 +59,51 @@ Hebb: \myemph{``Neurons that fire together, wire together''}
...
@@ -59,45 +59,51 @@ Hebb: \myemph{``Neurons that fire together, wire together''}
\frametitle
{
The perceptron
}
\frametitle
{
The perceptron
}
\textbf
{
Perceptron
}
: computing unit loosely inspired by the biological neuron
\textbf
{
Perceptron
}
: computing unit loosely inspired by the biological neuron
\vfill
\centerline
{
\begin{columns}
\begin{tabular}
[c]
{
cc
}
\begin{column}
{
.5
\textwidth
}
\begin{tabular}
[c]
{
c
}
\begin{center}
\includegraphics
[width=0.4\textwidth]
{
figures/BpNeurone
}
\includegraphics
[width=0.6\textwidth]
{
figures/BpNeurone
}
\end{tabular}
\end{center}
\hspace*
{
-1cm
}
\end{column}
&
\begin{column}
{
.5
\textwidth
}
\begin{center}
\begin{tabular}
[c]
{
rl
}
\begin{tabular}
[c]
{
rl
}
input:
&
$
x
_
i
$
\\
\textbf
{
input
}
:
&
$
\vx
=
\{
x
_
i
\}
$
\\
weights:
&
$
w
_
i
$
\\
\myemph
{
weights
}
:
&
$
\vw
=
\{
w
_
i
\}
$
\\
threshold:
&
$
s
$
\\
threshold:
&
$
s
$
\\
activity:
&
$
\displaystyle
a
=
\sum
_
i w
_
i x
_
i
+
s
$
\\
activity:
&
$
\displaystyle
a
=
\sum
_
i w
_
i x
_
i
+
s
$
\\
output:
&
$
y
=
f
(
a
)
$
\\
\myemph
{
activation function
}
:
&
$
f
=
\text
{
threshold function
}
$
\\
activation function:
&
$
f
=
threshold
(
a
)
$
\textbf
{
output
}
:
&
$
\hat
{
y
}
=
f
(
a
)
$
\\
\end{tabular}
\end{tabular}
\end{tabular}
\end{center}
}
\end{column}
\vfill
\end{columns}
\vspace
{
.5cm
}
Training method: change the weights
$
\vw
$
if a training example
$
\vx
$
is misclassified as follows:
\begin{itemize}
\item
[]
$
\hat
{
\vw
}^{
new
}
=
\hat
{
\vw
}^{
cur
}
+
\hat
{
\vx
}
. y
$
~~~ with ~~~
$
y
\in
\{
+
1
,
-
1
\}
$
\end{itemize}
\end{frame}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}
\begin{frame}
\frametitle
{
The Perceptron and the logical functions
}
\frametitle
{
The Perceptron and the logical functions
}
\hspace
{
1cm
}
\begin{tabular}
[t]
{
c
}
\begin{tabular}
[t]
{
c
}
y = a OR b
\\
[
10
pt]
y = a OR b
\\
[
5
pt]
\includegraphics
[height=0.7\textheight]
{
figures/or
}
\includegraphics
[height=0.7\textheight]
{
figures/or
}
\end{tabular}
\end{tabular}
\h
fill
\h
space
{
1cm
}
%
\begin{tabular}
[t]
{
c
}
\begin{tabular}
[t]
{
c
}
y = a AND b
\\
[
10
pt]
y = a AND b
\\
[
5
pt]
\includegraphics
[height=0.
7
\textheight]
{
figures/and
}
\includegraphics
[height=0.
69
\textheight]
{
figures/and
}
\end{tabular}
\end{tabular}
\h
fill
\h
space
{
1cm
}
%
\begin{tabular}
[t]
{
c
}
\begin{tabular}
[t]
{
c
}
y = a XOR b
\\
[
10
pt]
y = a XOR b
\\
[
5
pt]
\includegraphics
[height=0.7\textheight]
{
figures/xor
}
\includegraphics
[height=0.7
3
\textheight]
{
figures/xor
}
\end{tabular}
\end{tabular}
\end{frame}
\end{frame}
...
@@ -125,13 +131,27 @@ y_i^{c} & = & f \left(\sum_j w^{c-1}_{ij} ~ y_j^{c-1}\right) \\
...
@@ -125,13 +131,27 @@ y_i^{c} & = & f \left(\sum_j w^{c-1}_{ij} ~ y_j^{c-1}\right) \\
\Ra\ \myemph
{
propagation
}
of the input
$
\vx
$
towards the output
$
\vy
$
\Ra\ \myemph
{
propagation
}
of the input
$
\vx
$
towards the output
$
\vy
$
\end{frame}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}
\frametitle
{
How to train a multilayer perceptron?
}
\begin{block}
{
\center
\textbf
{
Backpropagation
}}
\begin{center}
\Large
{
Backward propagation of errors
}
\end{center}
\end{block}
\begin{itemize}
\item
What error?
\Ra\
Error function depending on the task
\item
Estimating a real value:
\ra\
\end{itemize}
\end{frame}
...
@@ -151,6 +171,15 @@ y_i^{c} & = & f \left(\sum_j w^{c-1}_{ij} ~ y_j^{c-1}\right) \\
...
@@ -151,6 +171,15 @@ y_i^{c} & = & f \left(\sum_j w^{c-1}_{ij} ~ y_j^{c-1}\right) \\
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}
\frametitle
{
TITLE
}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}
\begin{frame}
\frametitle
{
Deep Learning for Sentiment Analysis
}
\frametitle
{
Deep Learning for Sentiment Analysis
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment