mardi 21 avril 2020

How is numpy.random.Generator different from RandomState?

Generator sounds like a replacement for RandomState, and the way of the future for generating random numbers in NumPy.

What features or behavior (currently or planned) does Generator have that RandomState doesn't?

Both can be parameterized with BitGenerator objects. They have some different methods, but the vast majority appear to be the same.

Relevant links:




Aucun commentaire:

Enregistrer un commentaire