Documente Academic
Documente Profesional
Documente Cultură
Corey Weisinger
C
orey.Weisinger@knime.com
Rosaria Silipo
R osaria.Silipo@knime.com
© 2020 KNIME AG. All Right Reserved.
Agenda
KNIME Community
Integrations Extensions
KNIME
Open Source
Analytics Platform
KNIME Partner
Extensions Extensions
KNIME Server
Neuron
Networks
𝑥1
𝑤1 𝑏
∑0,8σ 𝑎= 𝜎(𝑥1𝑤1 + 𝑥2𝑤2 + 𝑏)
𝑤2
𝑥2
2 2
𝑤 3,1 3
𝑤 1,3
2
𝑤 3,2 𝑏23
∑
∑ ∑
• Problems:
∑σ
– Each time step is completely independent ∑σ
– For translations we need context ∑σ
– More general: we need a network that 𝑥 ∑σ 𝑦
∑σ
remembers inputs from the past ∑σ
∑σ
∑σ
• Solution: Recurrent neural
networks
Input x Output y
Ich I
mag like
Sch chocolate
okol
ade
© 2020 KNIME AG. All Rights Reserved. 16
What are RNNs?
𝟐 𝟑
𝒙 𝒚
∑ ∑
1 𝟐 𝟑
𝒙 𝒚
∑ ∑ ∑
2
∑ ∑
𝟑
1 𝟑
2 𝟑
3 𝟑
4
𝒚 𝒚 𝒚 𝒚
∑ ∑ ∑ ∑
∑ ∑ ∑ ∑
∑ ∑ ∑ ∑
𝟐 𝟐 𝟐 𝟐
𝒙 𝒙 𝒙 𝒙
1 2 3 4
Many to Many
Ich gehe gerne segeln
A A A A A A A A A A
I like to go sailing
Language classification
Text classification Image captioning
© 2020 KNIME AG. All Rights Reserved. 24
How can we train a recurrent neural network for text generation
0,0,0,1,0,0,0,0,0, ... , 0
o
0,0,0,0,0,0,1,0,0, ... , 0
u
0,0,0,0,0,0,0,1,0, ... , 0
n
M samples
0,0,0,0,1,0,0,0,0, ... , 0
t
0,0,0,0,0,0,0,0,1, ... , 0
1,0,0,0,0,0,0,0,0, ... , 0
a B
0,1,0,0,0,0,0,0,0, ... , 0
k ...
m
n
z
b
a
softmax
linear
LSTM based Neural Network: Many to Many
33
LSTM states
0,1,0,0,0,0,0,0,0, ... , 0
M
0,0,0,1,0,0,0,0,0, ... , 0
o
0,0,0,0,0,0,1,0,0, ... , 0
u
M samples
0,0,0,0,0,0,0,1,0, ... , 0
N=256 LSTM states
n
0,0,0,0,1,0,0,0,0, ... , 0
t
Mount Baker
0,0,0,0,0,0,0,0,1, ... , 0
1,0,0,0,0,0,0,0,0, ... , 0
B
95 = dictionary size
The KNIME Keras Integration
https://www.knime.com/deeplearning/keras
LSTM states
© 2020 KNIME AG. All Rights Reserved. 35
Model training workflow
Advantages:
- They remind you of mountains. Do
not they?
- Sound familiar enough
- Evoke the feeling of nature
- No copyright issues
- Automatic generation in 10
seconds
- You can generate as many as you
want
- No people involved as of now
h
ttps://hub.knime.com
h
ttps://kni.me/w/mGO9nXhmjzIKiqHU
M past samples
a
s u o h b
e
0,0,0,0,0,0,0,1,0, ... , 0
0,0,0,0,0,0,1,0,0, ... , 0
0,0,0,1,0,0,0,0,0, ... , 0
0,1,0,0,0,0,0,0,0, ... , 0
86 = dictionary size
86 = dictionary size
m
n
LSTM states
N
...
Dictionary size = 86
256 LSTM states z
100 past characters
Training set = 23
popular rap songs
© 2020 KNIME AG. All Rights Reserved. 46
Creative AI: the training workflow
– “King Lear”
– “Othello”
– “Much ado about nothing”
• h ttps://opendatascience.com/how-to-use-deep-learning-to-write-
shakespeare/
• h ttps://customerthink.com/ai-generated-rap-
songs/
Questions?
The KNIME® trademark and logo and OPEN FOR INNOVATION® trademark are used by KNIME AG under license from KNIME GmbH,
and are registered in the United States. KNIME® is also registered in Germany.
The KNIME® trademark and logo and OPEN FOR INNOVATION® trademark are used by
KNIME AG under license from KNIME GmbH, and are registered in the United States.
KNIME® is also registered in Germany.
layers
– Less prone to overfitting
– Feature extraction useful for
transfer learning
© 2020 KNIME AG. All Rights Reserved.
Final Layer
VGG16 Model We used
• Input size
– VGG16: 3x64x64 image
– Us: 1388x1040x3 image
• Image Values
– VGG16: Normalized 0-1
Create Patches Metanode
• Pre-Processing
– Multiple patches per
image
– Normalize (per Image processing nodes part of KNIME Image Processing Extension:
https://kni.me/e/Uq6QE1IQIqG4q_mp
image)
– Re-arrange
dimensions
Questions?
The KNIME® trademark and logo and OPEN FOR INNOVATION® trademark are used by
KNIME AG under license from KNIME GmbH, and are registered in the United States.
KNIME® is also registered in Germany.