parrt/dtreeviz

Make all random calls reproducible

mepland opened this issue · 2 comments

Only one np.random call is proceeded by a np.random.seed(0) call. We should review and make sure all random calls have seeds set and thus are reproducible.

parrt commented

I wonder if we should simply remove those calls to seed() and then allow the user to specify a seat at the start of their notebook?

@parrt, if we did that the plots would be reproducible only if the user executed their notebook / code in the same order. I think it would be better to set the seed within each plotting function.