34966
scikit-learn Docs · نسخهٔ 5e9184e53cd3 · BSD-3-Clause
- scikit-learn estimators that inherit from
~sklearn.base.BaseEstimatornow
auto-request sample_weight on methods that accept it when metadata routing and auto-requests are enabled via ~sklearn.set_config. This includes consuming routers <router> that expose those methods via `add_self_request (for example CV estimators and other meta-estimators that consume sample_weight in fit and/or score). Third-party estimators can opt in with ~sklearn.utils.metadata_routing.AutoRequestMixin. By Stefanie Senger <StefanieSenger>`.