I use CNN in Kerasfor the NLP task and instead of max merging, I am trying to reach max pool time.
Keras
Any ideas / hacks on how to achieve this?
What I mean by maximum pool time is the union of the maximum value, regardless of where they are in the vector
Assuming your data form (batch_size, seq_len, features), you can apply:
(batch_size, seq_len, features)
seq_model = Reshape((seq_len * features, 1))(seq_model) seq_model = GlobalMaxPooling1D()(seq_model)
. , .
:
seq_model = Permute((2, 1))(seq_model) seq_model = MaxPooling1D()(seq_model)
Source: https://habr.com/ru/post/1668391/More articles:Why do I need a static here? - c ++Leak detected on view of UIImagePickerController - iosHow to manually set the record separator in awk? - awkSQL Server: JSON without an array wrapper at lower levels - jsonRemove space between columns in ggplot2 geom_bar - rMacOS wc (wordcount) counts incorrect words with the character UTF-8 Å - utf-8FTP does not work from docker-mesos container - scalaDownload the Google Maps API in jsdom - javascriptКак получить тему, связанную с каждым документом, используя pyspark (2.1.0) LdA? - topic-modelingHow to make TrailRenderer work when timeScale is 0 in Unity? - unity3dAll Articles