TransWikia.com

Multiple features in LSTM

Data Science Asked on March 19, 2021

It’s clear how LSTM works with 1 feature. But what happens if the number of features is > 1?

enter image description here

According to the answer proposed here,

Keras creates a computational graph that executes the sequence in your bottom picture per feature (but for all units). That means the state value C is always a scalar, one per unit.

But if it executed the process per feature, the result would be number of units x number of features. Instead, we get only the number of units (if return_sequences=False; otherwise, number of timesteps x number of units).

What happens to features and how are they processed? At which step and how are they merged?

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP