{"cells": [{"cell_type": "markdown", "metadata": {}, "source": ["# 2A.ml - R\u00e9duction d'une for\u00eat al\u00e9atoire - correction\n", "\n", "Le mod\u00e8le Lasso permet de s\u00e9lectionner des variables, une for\u00eat al\u00e9atoire produit une pr\u00e9diction comme \u00e9tant la moyenne d'arbres de r\u00e9gression. Et si on m\u00e9langeait les deux ?"]}, {"cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [{"data": {"text/html": ["
\n", ""], "text/plain": ["RandomForestRegressor()In a Jupyter environment, please rerun this cell to show the HTML representation or trust the notebook.
RandomForestRegressor()
LinearRegression()In a Jupyter environment, please rerun this cell to show the HTML representation or trust the notebook.
LinearRegression()
\n", " | alpha | \n", "null | \n", "r2 | \n", "
---|---|---|---|
195 | \n", "10.5 | \n", "83 | \n", "0.318660 | \n", "
196 | \n", "10.6 | \n", "83 | \n", "0.318771 | \n", "
197 | \n", "10.7 | \n", "83 | \n", "0.318879 | \n", "
198 | \n", "10.8 | \n", "83 | \n", "0.318982 | \n", "
199 | \n", "10.9 | \n", "82 | \n", "0.319073 | \n", "