Closed philieeas closed 4 months ago
I played with the code a little bit and it seems like a seeded random generator doesn't break any code.. (from very limited checks). I will give it a try after finishing up some matrix profile work..
Disclaimer: not an expert on seeding and random numbers... But let's see how much we can get away with by just switching the rng generator to a seeded one..
Hello, first of all this library is great and a joy to work with.
I am using it to generate some random test values, but I am not sure how to make the random outputs deterministic by a seed. What I tried is setting the random seed using
pl.set_random_seed
, but Basically I excepta
andb
to be the same in the following example:It gives me this output, the values differ:
I am not sure how to fix this. Maybe there is a way to reset the random number generator from polars or you are using your own? Is this use case actually in scope? I can imagine it being difficult with the parallelization that polars does in the background.