.. _f-lassorandomforestregressor: module ``ml.lasso_random_forest_regressor`` =========================================== .. inheritance-diagram:: ensae_teaching_cs.ml.lasso_random_forest_regressor Short summary +++++++++++++ module ``ensae_teaching_cs.ml.lasso_random_forest_regressor`` Implements *LassoRandomForestRegressor*. :githublink:`%|py|5` Classes +++++++ +---------------------------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+ | class | truncated documentation | +=====================================================================================================================+=============================================================================================================================+ | :class:`LassoRandomForestRegressor ` | Fits a random forest and then selects trees by using a Lasso regression. The traning produces the following attributes: ... | +---------------------------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+ Properties ++++++++++ +--------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+ | property | truncated documentation | +====================================================================================================================+==================================================================================================================+ | :py:meth:`_repr_html_ ` | HTML representation of estimator. This is redundant with the logic of `_repr_mimebundle_`. The latter should ... | +--------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+ Methods +++++++ +-----------------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------+ | method | truncated documentation | +=============================================================================================================================+================================================================================================================+ | :py:meth:`__init__ ` | | +-----------------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------+ | :meth:`decision_function ` | Computes the predictions. | +-----------------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------+ | :meth:`fit ` | Fits the random forest first, then applies a lasso and finally removes all trees mapped to a null coefficient. | +-----------------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------+ | :meth:`predict ` | Computes the predictions. | +-----------------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------+ Documentation +++++++++++++ .. automodule:: ensae_teaching_cs.ml.lasso_random_forest_regressor :members: :special-members: __init__ :show-inheritance: