Skip to content

Instantly share code, notes, and snippets.


Jaak Simm jaak-s

  • KU Leuven
View GitHub Profile
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
View Benchmarking disk IO
# 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
You can’t perform that action at this time.