啟用減半搜尋交叉驗證#

啟用連續減半搜尋估計器

這些估計器的API和結果可能會在沒有任何棄用週期的情況下更改。

動態導入此檔案會將HalvingRandomSearchCVHalvingGridSearchCV 設定為model_selection模組的屬性

>>> # explicitly require this experimental feature
>>> from sklearn.experimental import enable_halving_search_cv # noqa
>>> # now you can import normally from model_selection
>>> from sklearn.model_selection import HalvingRandomSearchCV
>>> from sklearn.model_selection import HalvingGridSearchCV

# noqa註解可以刪除:它只是告訴像flake8這樣的linter忽略導入,因為它顯示為未使用。