numpy.random.default_rng().random() takes the following arguments:
random(size=None, dtype=np.float64, out=None)
I get a result when I specify size (see code below) but get an error 'Supplied output array is not contiguous, writable or aligned' when instead I specify output format (see code below).
'np.random.default_rng().random(size=(24,8))'
'np.random.default_rng().random(out=(24,8))'
Aucun commentaire:
Enregistrer un commentaire