3 ms·
In ML you really want to use Numpy ndarrays, Pandas dataframes or Tensors. A list is much too slow because: - Not contiguous - No SIMD vectorization - No para
by mratsim 7y ago
In ML you really want to use Numpy ndarrays, Pandas dataframes or Tensors.
A list is much too slow because:
- Not contiguous
- No SIMD vectorization
- No parallel processing
Lists are mostly used for list of containers (for example storing the arrays inputs of a function)