I have been following a tutorial that shows how to make a word2vec
model.
This tutorial uses this piece of code:
similarity = merge([target, context], mode='cos', dot_axes=0)
(no other info was given, but I suppose this comes from keras.layers
)
Now, I've researched a bit on the merge
method but I couldn't find much about it.
From what I understand, it has been replaced by a lot of functions like layers.Add(), layers.Concat()...
.
What should I use? There's .Dot()
, which has an axis
parameter (which seems to be correct) but no mode
parameter.
What can I use in this case?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…