You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I posted about this on the US-RSE slack, and they said that running code on import / in __init__.py is a very bad idea: "If you are a library you can not guess what else your users are doing and what other libraries they are importing. Consider the case where some other library the user imports makes the opposite decision about setting this option, then you can end up in a case where the behavior the users sees is dependent on the import order of the libaries!"
The recommendation was to have a function like our_opinionated_config() at the top level that does this (and any other necessary "tuning of other libraries"), and we discuss it in docs, use it in all tutorials. User then has to opt in, but they don't need to understand all the details.
Should we default to float64 precision and "LBFGS", as sklearn?
Rationale:
How do we do that? at import +Warning? we are waiting for response from US-RSE.
The text was updated successfully, but these errors were encountered: