Open adam2392 opened 1 month ago
@adam2392 sure! This warning should have only shown when treeple.stats is imported? Were you seeing it at other times?
Yeah I think because we do imports in __init__.py
I would take a look at the strategy, or designs sklearn uses to soft-import optional dependencies. E.g. polars, or joblib
Just to clarify @ryanhausen rather than warning during import, it should only warn the user when the function is used
@adam2392 agreed.
These lines seem like they are ran regardless of whether or not treeple.stats is used, since they are in the global namespace.
so I get this warning consistently no matter what
@ryanhausen do you mind submitting a PR to patch this behavior?