A list of arrays is necessary as a 2D array cannot be irregularly shaped, meaning all rows must have an equal number of columns. In case you desire to add zeros, you may utilize np.lib.pad . def shapeshifter(num_col, my_array=data): return np.lib.pad(my_array, (0, num_col ...
relevant patterns with biological meaning5,8,11,12. For their part, bidirectional RNNs (and the derived Long Short-Term Memory and Gated Recurrent Units) are appropiate for modelling biological sequences since they are suited for data with a sequential but non-causal structure, variable length, ...