Skip to content

Instantly share code, notes, and snippets.

import numpy as np
import scipy.sparse
import macau
import row_split
## generate random toy data
Y = scipy.sparse.rand(100, 20, 0.5)
## random folds for cross-validation
# installation
sudo apt install fio
# run benchmark
fio --randrepeat=1 --ioengine=libaio --direct=1 --gtod_reduce=1 \
--name=test --filename=/tmp/test --bs=4k --iodepth=64 --size=4G \
--readwrite=randrw --rwmixread=75
# delete test file
rm /tmp/test