def sample_bernoulli(X):
    return (X >= random.uniform(size=X.shape)).astype('b')
Reformat the user-friendly device map from striderfile into something boto likes
dataset/ETHPy150Open theusual/kaggle-seeclickfix-ensemble/Miroslaw/sparserbm.py/sample_bernoulli--crossover with--dataset/ETHPy150Open mpdehaan/strider/lib/strider/virt/ec2.py/EC2._transform_block_device_map