Batch Processing

PHOTONAI offers batch processing of elements. This comes in handy for working memory sensitive tasks. An example is handling large medical data modalities, such as resampling gray matter 3D brain scan niftis. However, be aware that this only makes sense for algorithms that independently transform each item.

Batching is easily accessed by adding the batch_size parameter to the PipelineElement.

1
PipelineElement("LabelEncoder", batch_size=10)