Hi. I’m getting this error. Can you point me in the right direction?
[[‘InputLayer’, [(None, 30, 37)], 0], [‘InputLayer’, [(None, 64)], 0], [‘Bidirectional’, (None, 30, 64), 17920], [‘RepeatVector’, (None, 30, 64), 0, 30], [‘Concatenate’, (None, 30, 128), 0], [‘Dense’, (None, 30, 10), 1290, ‘tanh’], [‘Dense’, (None, 30, 1), 11, ‘relu’], [‘Activation’, (None, 30, 1), 0], [‘Dot’, (None, 1, 64), 0], [‘InputLayer’, [(None, 64)], 0], [‘LSTM’, [(None, 64), (None, 64), (None, 64)], 33024, [(None, 1, 64), (None, 64), (None, 64)], ‘tanh’], [‘Dense’, (None, 64), 4160, ‘softmax’], [‘Dense’, (None, 64), 4160, ‘softmax’], [‘Dense’, (None, 64), 4160, ‘softmax’], [‘Dense’, (None, 64), 4160, ‘softmax’], [‘Dense’, (None, 64), 4160, ‘softmax’], [‘Dense’, (None, 64), 4160, ‘softmax’], [‘Dense’, (None, 64), 4160, ‘softmax’], [‘Dense’, (None, 64), 4160, ‘softmax’], [‘Dense’, (None, 64), 4160, ‘softmax’], [‘Dense’, (None, 64), 4160, ‘softmax’]]
AssertionError Traceback (most recent call last)
in
33
34
—> 35 modelf_test(modelf)
in modelf_test(target)
30 assert len(model.outputs) == 10, f"Wrong output shape. Expected 10 != {len(model.outputs)}"
31
—> 32 comparator(summary(model), expected_summary)
33
34
~/work/W3A1/test_utils.py in comparator(learner, instructor)
16 def comparator(learner, instructor):
17 if len(learner) != len(instructor):
—> 18 raise AssertionError(“Error in test. The lists contain a different number of elements”)
19 for index, a in enumerate(instructor):
20 b = learner[index]
AssertionError: Error in test. The lists contain a different number of elements