online-ml / river

🌊 Online machine learning in Python
https://riverml.xyz
BSD 3-Clause "New" or "Revised" License
4.89k stars 538 forks source link

Seeds for HoeffdingTreeRegressor? #1551

Closed sebasmos closed 1 month ago

sebasmos commented 1 month ago

Are there any seed implementations for https://riverml.xyz/0.21.1/api/tree/HoeffdingTreeRegressor/?

I saw it is available in other models (HATR, ARF), is this something that could be similarly implemented? e.g. 'HoeffdingTreeRegressor': (tree.HoeffdingTreeRegressor(grace_period=200, seed=0))

smastelini commented 1 month ago

Hi @sebasmos. The vanilla HTR is inherently deterministic, apart from its leaf models (in case you are using something customized). That is why there is no seed parameter.

sebasmos commented 1 month ago

Makes sense, thank you @smastelini !

smastelini commented 1 month ago

You're welcome!