Loading...

List

An ordered, mutable sequence indexed by integer position from 0.

When to use: Holding samples, batches, predictions, ordered collections.

Example: preds = [0.1, 0.7, 0.4]; preds.append(0.9); preds.sort() mutates to [0.1, 0.4, 0.7, 0.9].

More Python for ML Glossary terms