online-ml / river

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

Obtaining Model memory in MB #1521

Closed sebasmos closed 6 months ago

sebasmos commented 6 months ago

I see that you report the model's memory in MB in https://riverml.xyz/0.21.0/benchmarks/Regression/ how do you calculate it? Thanks!

smastelini commented 6 months ago

It is a property of base.Base:

https://github.com/online-ml/river/blob/aac6318a5e9b593ac07ea55171121553d92ec712/river/base/base.py#L352-L389

sebasmos commented 6 months ago

Thanks!