API
mlp_at
Return the MLP at `index` in the Dataset.
function · source
mlp_at(ds: 'Dataset', index: 'int') -> 'MLP'Return the MLP at `index` in the Dataset.
Requires a materialised ``Dataset``; streaming ``IterableDataset`` has no
random-access contract, so this raises ``TypeError`` on streaming inputs.
To get one MLP at index ``i`` from a streaming dataset, use::
import itertools
mlp = next(itertools.islice(iter_mlps(streaming_ds), i, i + 1))
Cost is O(i) rows scanned — sequential scan to position ``i``.