eddymotion.data.splitting module

Data splitting helpers.

eddymotion.data.splitting.lovo_split(dataset, index, with_b0=False)[source]

Produce one fold of LOVO (leave-one-volume-out).

Parameters:
Returns:

  • (train_data, train_gradients) (tuple) – Training DWI and corresponding gradients. Training data/gradients come from the updated dataset.

  • (test_data, test_gradients) tuple – Test 3D map (one DWI orientation) and corresponding b-vector/value. The test data/gradient come from the original dataset.