load_prediction_file#

ethograph.labels.predictions.load_prediction_file(path)[source]#

Load a prediction file (.npy or .pickle). Returns a numpy array.

For .npy files with shape (T,) (confidence or dense labels), uses memory-mapping (mmap_mode=’r’) so no data is copied into RAM until accessed.

Return type:

ndarray