На StackOverflow уже началось первое апреля
Подробнее
stackoverflow Search... g 116 .1 .5 © Q -Ç> O = Recommended deep learning architecture to extract certain part of a sequence Ask Question **#..** * * What deep learning architecture (preferably in keras) do you recommend for solving the following dummy example? (dummy example will be used for solving the greater problem.) The input of the model is a sequence of mtegers between 1 and 250. The output should return all the mtegers enclosed between two l's and the l's itself. Example input: 2 60 15 1 14 99 1 5 1 45 66 23 1 Corresponding output: 1 5 99 1 1 45 66 23 1 I know this is easily done rule-based with regex or other. I already tried different architectures m Keras with different layers like an LSTM. Dense, bidirectional LSTM: attention but all without any good results. Below is the code used to create the training data. # Functions to generate data sje def generate_activity(): * lengthjc = randint(2,6) ^ ^ solution = [1] + [randint(2, 250) for _ in range(length)] + [1] activity = [randint(2,6)] + solution return activity, solution def generate_start(): length = randint(2,10) return [randint(2, 250) for _ in range(length)] return start asked today viewed times ♦ ♦ BLOG r The Next CEO of Stack Overflow FEATURED ON META r * * Updating the Hot Network Questions List - now with a bit more network and a... J« 2019 Community Moderator Election Results r Should we burninate the rietbrainsl r tqg2 The Ask Question Wizard is Live!
it-юмор,geek,Прикольные гаджеты. Научный, инженерный и айтишный юмор,stackoverflow,1 апреля,праздник
Еще на тему