rules/sklego/unseeded-random-estimator.md

RandomRegressor and RandomAdder without random_state draw new numbers on every call, so results change between calls. Pass random_state=.

diff
1-baseline = RandomRegressor(strategy="normal")
2+baseline = RandomRegressor(strategy="normal", random_state=0)

What the rule reports

The rule reports RandomRegressor and RandomAdder built without random_state, outside test files. Each call then draws new numbers.

How to fix it

With --unsafe-fixes, xpd supplies random_state=0. Choose a different seed if your project uses one.

Two predict calls of one fitted RandomRegressor() differed, and so did two transform calls of one RandomAdder() on its training rows. Both pairs were equal with random_state=0.