{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Model Pipelines in Sklearn" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "
Main Idea
\n", "Version control is a system that tracks changes to files over time.
\n", "\n", " | variable | \n", "type | \n", "description | \n", "
---|---|---|---|
0 | \n", "SalePrice | \n", "numeric | \n", "the property's sale price in dollars. This is ... | \n", "
1 | \n", "MSSubClass | \n", "categorical | \n", "The building class | \n", "
2 | \n", "MSZoning | \n", "categorical | \n", "The general zoning classification | \n", "
3 | \n", "LotFrontage | \n", "numeric | \n", "Linear feet of street connected to property | \n", "
4 | \n", "LotArea | \n", "numeric | \n", "Lot size in square feet | \n", "
... | \n", "... | \n", "... | \n", "... | \n", "
75 | \n", "MiscVal | \n", "numeric | \n", "$Value of miscellaneous feature | \n", "
76 | \n", "MoSold | \n", "numeric | \n", "Month Sold | \n", "
77 | \n", "YrSold | \n", "numeric | \n", "Year Sold | \n", "
78 | \n", "SaleType | \n", "categorical | \n", "Type of sale | \n", "
79 | \n", "SaleCondition | \n", "categorical | \n", "Condition of sale | \n", "
80 rows × 3 columns
\n", "\n", " | LotFrontage | \n", "LotArea | \n", "OverallQual | \n", "OverallCond | \n", "YearBuilt | \n", "YearRemodAdd | \n", "MasVnrArea | \n", "BsmtFinSF1 | \n", "BsmtFinSF2 | \n", "BsmtUnfSF | \n", "... | \n", "GarageArea | \n", "WoodDeckSF | \n", "OpenPorchSF | \n", "EnclosedPorch | \n", "3SsnPorch | \n", "ScreenPorch | \n", "PoolArea | \n", "MiscVal | \n", "MoSold | \n", "YrSold | \n", "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
count | \n", "1201.000000 | \n", "1460.000000 | \n", "1460.000000 | \n", "1460.000000 | \n", "1460.000000 | \n", "1460.000000 | \n", "1452.000000 | \n", "1460.000000 | \n", "1460.000000 | \n", "1460.000000 | \n", "... | \n", "1460.000000 | \n", "1460.000000 | \n", "1460.000000 | \n", "1460.000000 | \n", "1460.000000 | \n", "1460.000000 | \n", "1460.000000 | \n", "1460.000000 | \n", "1460.000000 | \n", "1460.000000 | \n", "
mean | \n", "70.049958 | \n", "10516.828082 | \n", "6.099315 | \n", "5.575342 | \n", "1971.267808 | \n", "1984.865753 | \n", "103.685262 | \n", "443.639726 | \n", "46.549315 | \n", "567.240411 | \n", "... | \n", "472.980137 | \n", "94.244521 | \n", "46.660274 | \n", "21.954110 | \n", "3.409589 | \n", "15.060959 | \n", "2.758904 | \n", "43.489041 | \n", "6.321918 | \n", "2007.815753 | \n", "
std | \n", "24.284752 | \n", "9981.264932 | \n", "1.382997 | \n", "1.112799 | \n", "30.202904 | \n", "20.645407 | \n", "181.066207 | \n", "456.098091 | \n", "161.319273 | \n", "441.866955 | \n", "... | \n", "213.804841 | \n", "125.338794 | \n", "66.256028 | \n", "61.119149 | \n", "29.317331 | \n", "55.757415 | \n", "40.177307 | \n", "496.123024 | \n", "2.703626 | \n", "1.328095 | \n", "
min | \n", "21.000000 | \n", "1300.000000 | \n", "1.000000 | \n", "1.000000 | \n", "1872.000000 | \n", "1950.000000 | \n", "0.000000 | \n", "0.000000 | \n", "0.000000 | \n", "0.000000 | \n", "... | \n", "0.000000 | \n", "0.000000 | \n", "0.000000 | \n", "0.000000 | \n", "0.000000 | \n", "0.000000 | \n", "0.000000 | \n", "0.000000 | \n", "1.000000 | \n", "2006.000000 | \n", "
25% | \n", "59.000000 | \n", "7553.500000 | \n", "5.000000 | \n", "5.000000 | \n", "1954.000000 | \n", "1967.000000 | \n", "0.000000 | \n", "0.000000 | \n", "0.000000 | \n", "223.000000 | \n", "... | \n", "334.500000 | \n", "0.000000 | \n", "0.000000 | \n", "0.000000 | \n", "0.000000 | \n", "0.000000 | \n", "0.000000 | \n", "0.000000 | \n", "5.000000 | \n", "2007.000000 | \n", "
50% | \n", "69.000000 | \n", "9478.500000 | \n", "6.000000 | \n", "5.000000 | \n", "1973.000000 | \n", "1994.000000 | \n", "0.000000 | \n", "383.500000 | \n", "0.000000 | \n", "477.500000 | \n", "... | \n", "480.000000 | \n", "0.000000 | \n", "25.000000 | \n", "0.000000 | \n", "0.000000 | \n", "0.000000 | \n", "0.000000 | \n", "0.000000 | \n", "6.000000 | \n", "2008.000000 | \n", "
75% | \n", "80.000000 | \n", "11601.500000 | \n", "7.000000 | \n", "6.000000 | \n", "2000.000000 | \n", "2004.000000 | \n", "166.000000 | \n", "712.250000 | \n", "0.000000 | \n", "808.000000 | \n", "... | \n", "576.000000 | \n", "168.000000 | \n", "68.000000 | \n", "0.000000 | \n", "0.000000 | \n", "0.000000 | \n", "0.000000 | \n", "0.000000 | \n", "8.000000 | \n", "2009.000000 | \n", "
max | \n", "313.000000 | \n", "215245.000000 | \n", "10.000000 | \n", "9.000000 | \n", "2010.000000 | \n", "2010.000000 | \n", "1600.000000 | \n", "5644.000000 | \n", "1474.000000 | \n", "2336.000000 | \n", "... | \n", "1418.000000 | \n", "857.000000 | \n", "547.000000 | \n", "552.000000 | \n", "508.000000 | \n", "480.000000 | \n", "738.000000 | \n", "15500.000000 | \n", "12.000000 | \n", "2010.000000 | \n", "
8 rows × 34 columns
\n", "ColumnTransformer(transformers=[('numeric',\n", " Pipeline(steps=[('fill_na',\n", " SimpleImputer(strategy='median')),\n", " ('scale', StandardScaler())]),\n", " ['LotFrontage', 'LotArea', 'OverallQual',\n", " 'OverallCond', 'YearBuilt', 'YearRemodAdd',\n", " 'MasVnrArea', 'BsmtFinSF1', 'BsmtFinSF2',\n", " 'BsmtUnfSF', 'TotalBsmtSF', '1stFlrSF',\n", " '2ndFlrSF', 'LowQualFinSF', 'GrLivArea',\n", " 'BsmtFullBath', 'BsmtHal...\n", " 'LotShape', 'LandContour', 'Utilities',\n", " 'LotConfig', 'LandSlope', 'Neighborhood',\n", " 'Condition1', 'Condition2', 'BldgType',\n", " 'HouseStyle', 'RoofStyle', 'RoofMatl',\n", " 'Exterior1st', 'Exterior2nd', 'MasVnrType',\n", " 'ExterQual', 'ExterCond', 'Foundation',\n", " 'BsmtQual', 'BsmtCond', 'BsmtExposure',\n", " 'BsmtFinType1', 'BsmtFinType2', 'Heating',\n", " 'HeatingQC', 'CentralAir', 'Electrical', ...])],\n", " verbose_feature_names_out=False)In a Jupyter environment, please rerun this cell to show the HTML representation or trust the notebook.
ColumnTransformer(transformers=[('numeric',\n", " Pipeline(steps=[('fill_na',\n", " SimpleImputer(strategy='median')),\n", " ('scale', StandardScaler())]),\n", " ['LotFrontage', 'LotArea', 'OverallQual',\n", " 'OverallCond', 'YearBuilt', 'YearRemodAdd',\n", " 'MasVnrArea', 'BsmtFinSF1', 'BsmtFinSF2',\n", " 'BsmtUnfSF', 'TotalBsmtSF', '1stFlrSF',\n", " '2ndFlrSF', 'LowQualFinSF', 'GrLivArea',\n", " 'BsmtFullBath', 'BsmtHal...\n", " 'LotShape', 'LandContour', 'Utilities',\n", " 'LotConfig', 'LandSlope', 'Neighborhood',\n", " 'Condition1', 'Condition2', 'BldgType',\n", " 'HouseStyle', 'RoofStyle', 'RoofMatl',\n", " 'Exterior1st', 'Exterior2nd', 'MasVnrType',\n", " 'ExterQual', 'ExterCond', 'Foundation',\n", " 'BsmtQual', 'BsmtCond', 'BsmtExposure',\n", " 'BsmtFinType1', 'BsmtFinType2', 'Heating',\n", " 'HeatingQC', 'CentralAir', 'Electrical', ...])],\n", " verbose_feature_names_out=False)
['LotFrontage', 'LotArea', 'OverallQual', 'OverallCond', 'YearBuilt', 'YearRemodAdd', 'MasVnrArea', 'BsmtFinSF1', 'BsmtFinSF2', 'BsmtUnfSF', 'TotalBsmtSF', '1stFlrSF', '2ndFlrSF', 'LowQualFinSF', 'GrLivArea', 'BsmtFullBath', 'BsmtHalfBath', 'FullBath', 'HalfBath', 'BedroomAbvGr', 'KitchenAbvGr', 'TotRmsAbvGrd', 'GarageYrBlt', 'GarageCars', 'GarageArea', 'WoodDeckSF', 'OpenPorchSF', 'EnclosedPorch', '3SsnPorch', 'ScreenPorch', 'PoolArea', 'MiscVal', 'MoSold', 'YrSold']
SimpleImputer(strategy='median')
StandardScaler()
['MSSubClass', 'MSZoning', 'Street', 'LotShape', 'LandContour', 'Utilities', 'LotConfig', 'LandSlope', 'Neighborhood', 'Condition1', 'Condition2', 'BldgType', 'HouseStyle', 'RoofStyle', 'RoofMatl', 'Exterior1st', 'Exterior2nd', 'MasVnrType', 'ExterQual', 'ExterCond', 'Foundation', 'BsmtQual', 'BsmtCond', 'BsmtExposure', 'BsmtFinType1', 'BsmtFinType2', 'Heating', 'HeatingQC', 'CentralAir', 'Electrical', 'KitchenQual', 'Functional', 'Fireplaces', 'FireplaceQu', 'GarageType', 'GarageFinish', 'GarageQual', 'GarageCond', 'PavedDrive', 'Fence', 'SaleType', 'SaleCondition']
SimpleImputer(strategy='most_frequent')
OneHotEncoder(drop='first', handle_unknown='infrequent_if_exist',\n", " min_frequency=5, sparse_output=False)
\n", " | LotFrontage | \n", "LotArea | \n", "OverallQual | \n", "OverallCond | \n", "YearBuilt | \n", "YearRemodAdd | \n", "MasVnrArea | \n", "BsmtFinSF1 | \n", "BsmtFinSF2 | \n", "BsmtUnfSF | \n", "... | \n", "Fence_MnWw | \n", "SaleType_ConLD | \n", "SaleType_New | \n", "SaleType_WD | \n", "SaleType_infrequent_sklearn | \n", "SaleCondition_Alloca | \n", "SaleCondition_Family | \n", "SaleCondition_Normal | \n", "SaleCondition_Partial | \n", "SaleCondition_infrequent_sklearn | \n", "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
892 | \n", "-0.012468 | \n", "-0.211594 | \n", "-0.088934 | \n", "2.165000 | \n", "-0.259789 | \n", "0.873470 | \n", "-0.597889 | \n", "0.472844 | \n", "-0.285504 | \n", "-0.391317 | \n", "... | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "1.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "1.0 | \n", "0.0 | \n", "0.0 | \n", "
1105 | \n", "1.234520 | \n", "0.145643 | \n", "1.374088 | \n", "-0.524174 | \n", "0.751222 | \n", "0.487465 | \n", "1.498567 | \n", "1.276986 | \n", "-0.285504 | \n", "-0.312872 | \n", "... | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "1.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "1.0 | \n", "0.0 | \n", "0.0 | \n", "
413 | \n", "-0.635963 | \n", "-0.160826 | \n", "-0.820445 | \n", "0.372217 | \n", "-1.433867 | \n", "-1.683818 | \n", "-0.597889 | \n", "-0.971996 | \n", "-0.285504 | \n", "0.980347 | \n", "... | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "1.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "1.0 | \n", "0.0 | \n", "0.0 | \n", "
522 | \n", "-0.903175 | \n", "-0.529035 | \n", "-0.088934 | \n", "1.268609 | \n", "-0.781602 | \n", "-1.683818 | \n", "-0.597889 | \n", "-0.102477 | \n", "-0.285504 | \n", "0.077111 | \n", "... | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "1.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "1.0 | \n", "0.0 | \n", "0.0 | \n", "
1036 | \n", "0.833703 | \n", "0.205338 | \n", "2.105599 | \n", "-0.524174 | \n", "1.175195 | \n", "1.114724 | \n", "-0.192497 | \n", "1.255193 | \n", "-0.285504 | \n", "0.061422 | \n", "... | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "1.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "1.0 | \n", "0.0 | \n", "0.0 | \n", "
... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "
479 | \n", "-0.903175 | \n", "-0.443026 | \n", "-1.551955 | \n", "1.268609 | \n", "-1.107734 | \n", "0.728718 | \n", "1.921333 | \n", "-0.605882 | \n", "-0.285504 | \n", "0.377443 | \n", "... | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "1.0 | \n", "0.0 | \n", "1.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "
1361 | \n", "2.392439 | \n", "0.508459 | \n", "0.642577 | \n", "-0.524174 | \n", "1.109968 | \n", "0.969972 | \n", "-0.505228 | \n", "1.804363 | \n", "-0.285504 | \n", "-0.705096 | \n", "... | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "1.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "1.0 | \n", "0.0 | \n", "0.0 | \n", "
802 | \n", "-0.324216 | \n", "-0.231585 | \n", "0.642577 | \n", "-0.524174 | \n", "1.109968 | \n", "0.969972 | \n", "-0.597889 | \n", "0.440155 | \n", "-0.285504 | \n", "-1.099561 | \n", "... | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "1.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "1.0 | \n", "0.0 | \n", "0.0 | \n", "
651 | \n", "-0.457822 | \n", "-0.149296 | \n", "-1.551955 | \n", "-0.524174 | \n", "-1.009895 | \n", "-1.683818 | \n", "-0.597889 | \n", "-0.971996 | \n", "-0.285504 | \n", "0.413303 | \n", "... | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "1.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "1.0 | \n", "0.0 | \n", "0.0 | \n", "
722 | \n", "-0.012468 | \n", "-0.238931 | \n", "-1.551955 | \n", "1.268609 | \n", "-0.031496 | \n", "-0.718804 | \n", "-0.597889 | \n", "-0.555760 | \n", "-0.285504 | \n", "0.229518 | \n", "... | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "1.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "1.0 | \n", "0.0 | \n", "0.0 | \n", "
292 rows × 226 columns
\n", "Pipeline(steps=[('preproc',\n", " ColumnTransformer(transformers=[('numeric',\n", " Pipeline(steps=[('fill_na',\n", " SimpleImputer(strategy='median')),\n", " ('scale',\n", " StandardScaler())]),\n", " ['LotFrontage', 'LotArea',\n", " 'OverallQual', 'OverallCond',\n", " 'YearBuilt', 'YearRemodAdd',\n", " 'MasVnrArea', 'BsmtFinSF1',\n", " 'BsmtFinSF2', 'BsmtUnfSF',\n", " 'TotalBsmtSF', '1stFlrSF',\n", " '2ndFlrSF', 'LowQualFinSF',\n", " 'GrLivAr...\n", " 'Neighborhood', 'Condition1',\n", " 'Condition2', 'BldgType',\n", " 'HouseStyle', 'RoofStyle',\n", " 'RoofMatl', 'Exterior1st',\n", " 'Exterior2nd', 'MasVnrType',\n", " 'ExterQual', 'ExterCond',\n", " 'Foundation', 'BsmtQual',\n", " 'BsmtCond', 'BsmtExposure',\n", " 'BsmtFinType1',\n", " 'BsmtFinType2', 'Heating',\n", " 'HeatingQC', 'CentralAir',\n", " 'Electrical', ...])],\n", " verbose_feature_names_out=False)),\n", " ('estimator', Ridge(alpha=1))])In a Jupyter environment, please rerun this cell to show the HTML representation or trust the notebook.
Pipeline(steps=[('preproc',\n", " ColumnTransformer(transformers=[('numeric',\n", " Pipeline(steps=[('fill_na',\n", " SimpleImputer(strategy='median')),\n", " ('scale',\n", " StandardScaler())]),\n", " ['LotFrontage', 'LotArea',\n", " 'OverallQual', 'OverallCond',\n", " 'YearBuilt', 'YearRemodAdd',\n", " 'MasVnrArea', 'BsmtFinSF1',\n", " 'BsmtFinSF2', 'BsmtUnfSF',\n", " 'TotalBsmtSF', '1stFlrSF',\n", " '2ndFlrSF', 'LowQualFinSF',\n", " 'GrLivAr...\n", " 'Neighborhood', 'Condition1',\n", " 'Condition2', 'BldgType',\n", " 'HouseStyle', 'RoofStyle',\n", " 'RoofMatl', 'Exterior1st',\n", " 'Exterior2nd', 'MasVnrType',\n", " 'ExterQual', 'ExterCond',\n", " 'Foundation', 'BsmtQual',\n", " 'BsmtCond', 'BsmtExposure',\n", " 'BsmtFinType1',\n", " 'BsmtFinType2', 'Heating',\n", " 'HeatingQC', 'CentralAir',\n", " 'Electrical', ...])],\n", " verbose_feature_names_out=False)),\n", " ('estimator', Ridge(alpha=1))])
ColumnTransformer(transformers=[('numeric',\n", " Pipeline(steps=[('fill_na',\n", " SimpleImputer(strategy='median')),\n", " ('scale', StandardScaler())]),\n", " ['LotFrontage', 'LotArea', 'OverallQual',\n", " 'OverallCond', 'YearBuilt', 'YearRemodAdd',\n", " 'MasVnrArea', 'BsmtFinSF1', 'BsmtFinSF2',\n", " 'BsmtUnfSF', 'TotalBsmtSF', '1stFlrSF',\n", " '2ndFlrSF', 'LowQualFinSF', 'GrLivArea',\n", " 'BsmtFullBath', 'BsmtHal...\n", " 'LotShape', 'LandContour', 'Utilities',\n", " 'LotConfig', 'LandSlope', 'Neighborhood',\n", " 'Condition1', 'Condition2', 'BldgType',\n", " 'HouseStyle', 'RoofStyle', 'RoofMatl',\n", " 'Exterior1st', 'Exterior2nd', 'MasVnrType',\n", " 'ExterQual', 'ExterCond', 'Foundation',\n", " 'BsmtQual', 'BsmtCond', 'BsmtExposure',\n", " 'BsmtFinType1', 'BsmtFinType2', 'Heating',\n", " 'HeatingQC', 'CentralAir', 'Electrical', ...])],\n", " verbose_feature_names_out=False)
['LotFrontage', 'LotArea', 'OverallQual', 'OverallCond', 'YearBuilt', 'YearRemodAdd', 'MasVnrArea', 'BsmtFinSF1', 'BsmtFinSF2', 'BsmtUnfSF', 'TotalBsmtSF', '1stFlrSF', '2ndFlrSF', 'LowQualFinSF', 'GrLivArea', 'BsmtFullBath', 'BsmtHalfBath', 'FullBath', 'HalfBath', 'BedroomAbvGr', 'KitchenAbvGr', 'TotRmsAbvGrd', 'GarageYrBlt', 'GarageCars', 'GarageArea', 'WoodDeckSF', 'OpenPorchSF', 'EnclosedPorch', '3SsnPorch', 'ScreenPorch', 'PoolArea', 'MiscVal', 'MoSold', 'YrSold']
SimpleImputer(strategy='median')
StandardScaler()
['MSSubClass', 'MSZoning', 'Street', 'LotShape', 'LandContour', 'Utilities', 'LotConfig', 'LandSlope', 'Neighborhood', 'Condition1', 'Condition2', 'BldgType', 'HouseStyle', 'RoofStyle', 'RoofMatl', 'Exterior1st', 'Exterior2nd', 'MasVnrType', 'ExterQual', 'ExterCond', 'Foundation', 'BsmtQual', 'BsmtCond', 'BsmtExposure', 'BsmtFinType1', 'BsmtFinType2', 'Heating', 'HeatingQC', 'CentralAir', 'Electrical', 'KitchenQual', 'Functional', 'Fireplaces', 'FireplaceQu', 'GarageType', 'GarageFinish', 'GarageQual', 'GarageCond', 'PavedDrive', 'Fence', 'SaleType', 'SaleCondition']
SimpleImputer(strategy='most_frequent')
OneHotEncoder(drop='first', handle_unknown='infrequent_if_exist',\n", " min_frequency=5, sparse_output=False)
Ridge(alpha=1)
Pipeline(steps=[('preproc',\n", " ColumnTransformer(transformers=[('numeric',\n", " Pipeline(steps=[('fill_na',\n", " SimpleImputer(strategy='median')),\n", " ('scale',\n", " StandardScaler())]),\n", " ['LotFrontage', 'LotArea',\n", " 'OverallQual', 'OverallCond',\n", " 'YearBuilt', 'YearRemodAdd',\n", " 'MasVnrArea', 'BsmtFinSF1',\n", " 'BsmtFinSF2', 'BsmtUnfSF',\n", " 'TotalBsmtSF', '1stFlrSF',\n", " '2ndFlrSF', 'LowQualFinSF',\n", " 'GrLivAr...\n", " 'Neighborhood', 'Condition1',\n", " 'Condition2', 'BldgType',\n", " 'HouseStyle', 'RoofStyle',\n", " 'RoofMatl', 'Exterior1st',\n", " 'Exterior2nd', 'MasVnrType',\n", " 'ExterQual', 'ExterCond',\n", " 'Foundation', 'BsmtQual',\n", " 'BsmtCond', 'BsmtExposure',\n", " 'BsmtFinType1',\n", " 'BsmtFinType2', 'Heating',\n", " 'HeatingQC', 'CentralAir',\n", " 'Electrical', ...])],\n", " verbose_feature_names_out=False)),\n", " ('estimator', Ridge(alpha=1))])In a Jupyter environment, please rerun this cell to show the HTML representation or trust the notebook.
Pipeline(steps=[('preproc',\n", " ColumnTransformer(transformers=[('numeric',\n", " Pipeline(steps=[('fill_na',\n", " SimpleImputer(strategy='median')),\n", " ('scale',\n", " StandardScaler())]),\n", " ['LotFrontage', 'LotArea',\n", " 'OverallQual', 'OverallCond',\n", " 'YearBuilt', 'YearRemodAdd',\n", " 'MasVnrArea', 'BsmtFinSF1',\n", " 'BsmtFinSF2', 'BsmtUnfSF',\n", " 'TotalBsmtSF', '1stFlrSF',\n", " '2ndFlrSF', 'LowQualFinSF',\n", " 'GrLivAr...\n", " 'Neighborhood', 'Condition1',\n", " 'Condition2', 'BldgType',\n", " 'HouseStyle', 'RoofStyle',\n", " 'RoofMatl', 'Exterior1st',\n", " 'Exterior2nd', 'MasVnrType',\n", " 'ExterQual', 'ExterCond',\n", " 'Foundation', 'BsmtQual',\n", " 'BsmtCond', 'BsmtExposure',\n", " 'BsmtFinType1',\n", " 'BsmtFinType2', 'Heating',\n", " 'HeatingQC', 'CentralAir',\n", " 'Electrical', ...])],\n", " verbose_feature_names_out=False)),\n", " ('estimator', Ridge(alpha=1))])
ColumnTransformer(transformers=[('numeric',\n", " Pipeline(steps=[('fill_na',\n", " SimpleImputer(strategy='median')),\n", " ('scale', StandardScaler())]),\n", " ['LotFrontage', 'LotArea', 'OverallQual',\n", " 'OverallCond', 'YearBuilt', 'YearRemodAdd',\n", " 'MasVnrArea', 'BsmtFinSF1', 'BsmtFinSF2',\n", " 'BsmtUnfSF', 'TotalBsmtSF', '1stFlrSF',\n", " '2ndFlrSF', 'LowQualFinSF', 'GrLivArea',\n", " 'BsmtFullBath', 'BsmtHal...\n", " 'LotShape', 'LandContour', 'Utilities',\n", " 'LotConfig', 'LandSlope', 'Neighborhood',\n", " 'Condition1', 'Condition2', 'BldgType',\n", " 'HouseStyle', 'RoofStyle', 'RoofMatl',\n", " 'Exterior1st', 'Exterior2nd', 'MasVnrType',\n", " 'ExterQual', 'ExterCond', 'Foundation',\n", " 'BsmtQual', 'BsmtCond', 'BsmtExposure',\n", " 'BsmtFinType1', 'BsmtFinType2', 'Heating',\n", " 'HeatingQC', 'CentralAir', 'Electrical', ...])],\n", " verbose_feature_names_out=False)
['LotFrontage', 'LotArea', 'OverallQual', 'OverallCond', 'YearBuilt', 'YearRemodAdd', 'MasVnrArea', 'BsmtFinSF1', 'BsmtFinSF2', 'BsmtUnfSF', 'TotalBsmtSF', '1stFlrSF', '2ndFlrSF', 'LowQualFinSF', 'GrLivArea', 'BsmtFullBath', 'BsmtHalfBath', 'FullBath', 'HalfBath', 'BedroomAbvGr', 'KitchenAbvGr', 'TotRmsAbvGrd', 'GarageYrBlt', 'GarageCars', 'GarageArea', 'WoodDeckSF', 'OpenPorchSF', 'EnclosedPorch', '3SsnPorch', 'ScreenPorch', 'PoolArea', 'MiscVal', 'MoSold', 'YrSold']
SimpleImputer(strategy='median')
StandardScaler()
['MSSubClass', 'MSZoning', 'Street', 'LotShape', 'LandContour', 'Utilities', 'LotConfig', 'LandSlope', 'Neighborhood', 'Condition1', 'Condition2', 'BldgType', 'HouseStyle', 'RoofStyle', 'RoofMatl', 'Exterior1st', 'Exterior2nd', 'MasVnrType', 'ExterQual', 'ExterCond', 'Foundation', 'BsmtQual', 'BsmtCond', 'BsmtExposure', 'BsmtFinType1', 'BsmtFinType2', 'Heating', 'HeatingQC', 'CentralAir', 'Electrical', 'KitchenQual', 'Functional', 'Fireplaces', 'FireplaceQu', 'GarageType', 'GarageFinish', 'GarageQual', 'GarageCond', 'PavedDrive', 'Fence', 'SaleType', 'SaleCondition']
SimpleImputer(strategy='most_frequent')
OneHotEncoder(drop='first', handle_unknown='infrequent_if_exist',\n", " min_frequency=5, sparse_output=False)
Ridge(alpha=1)
Pipeline(steps=[('preproc',\n", " ColumnTransformer(transformers=[('numeric',\n", " Pipeline(steps=[('fill_na',\n", " SimpleImputer(strategy='median')),\n", " ('scale',\n", " StandardScaler())]),\n", " ['LotFrontage', 'LotArea',\n", " 'OverallQual', 'OverallCond',\n", " 'YearBuilt', 'YearRemodAdd',\n", " 'MasVnrArea', 'BsmtFinSF1',\n", " 'BsmtFinSF2', 'BsmtUnfSF',\n", " 'TotalBsmtSF', '1stFlrSF',\n", " '2ndFlrSF', 'LowQualFinSF',\n", " 'GrLivAr...\n", " 'Neighborhood', 'Condition1',\n", " 'Condition2', 'BldgType',\n", " 'HouseStyle', 'RoofStyle',\n", " 'RoofMatl', 'Exterior1st',\n", " 'Exterior2nd', 'MasVnrType',\n", " 'ExterQual', 'ExterCond',\n", " 'Foundation', 'BsmtQual',\n", " 'BsmtCond', 'BsmtExposure',\n", " 'BsmtFinType1',\n", " 'BsmtFinType2', 'Heating',\n", " 'HeatingQC', 'CentralAir',\n", " 'Electrical', ...])],\n", " verbose_feature_names_out=False)),\n", " ('estimator', Ridge(alpha=21.544346900318846))])In a Jupyter environment, please rerun this cell to show the HTML representation or trust the notebook.
Pipeline(steps=[('preproc',\n", " ColumnTransformer(transformers=[('numeric',\n", " Pipeline(steps=[('fill_na',\n", " SimpleImputer(strategy='median')),\n", " ('scale',\n", " StandardScaler())]),\n", " ['LotFrontage', 'LotArea',\n", " 'OverallQual', 'OverallCond',\n", " 'YearBuilt', 'YearRemodAdd',\n", " 'MasVnrArea', 'BsmtFinSF1',\n", " 'BsmtFinSF2', 'BsmtUnfSF',\n", " 'TotalBsmtSF', '1stFlrSF',\n", " '2ndFlrSF', 'LowQualFinSF',\n", " 'GrLivAr...\n", " 'Neighborhood', 'Condition1',\n", " 'Condition2', 'BldgType',\n", " 'HouseStyle', 'RoofStyle',\n", " 'RoofMatl', 'Exterior1st',\n", " 'Exterior2nd', 'MasVnrType',\n", " 'ExterQual', 'ExterCond',\n", " 'Foundation', 'BsmtQual',\n", " 'BsmtCond', 'BsmtExposure',\n", " 'BsmtFinType1',\n", " 'BsmtFinType2', 'Heating',\n", " 'HeatingQC', 'CentralAir',\n", " 'Electrical', ...])],\n", " verbose_feature_names_out=False)),\n", " ('estimator', Ridge(alpha=21.544346900318846))])
ColumnTransformer(transformers=[('numeric',\n", " Pipeline(steps=[('fill_na',\n", " SimpleImputer(strategy='median')),\n", " ('scale', StandardScaler())]),\n", " ['LotFrontage', 'LotArea', 'OverallQual',\n", " 'OverallCond', 'YearBuilt', 'YearRemodAdd',\n", " 'MasVnrArea', 'BsmtFinSF1', 'BsmtFinSF2',\n", " 'BsmtUnfSF', 'TotalBsmtSF', '1stFlrSF',\n", " '2ndFlrSF', 'LowQualFinSF', 'GrLivArea',\n", " 'BsmtFullBath', 'BsmtHal...\n", " 'LotShape', 'LandContour', 'Utilities',\n", " 'LotConfig', 'LandSlope', 'Neighborhood',\n", " 'Condition1', 'Condition2', 'BldgType',\n", " 'HouseStyle', 'RoofStyle', 'RoofMatl',\n", " 'Exterior1st', 'Exterior2nd', 'MasVnrType',\n", " 'ExterQual', 'ExterCond', 'Foundation',\n", " 'BsmtQual', 'BsmtCond', 'BsmtExposure',\n", " 'BsmtFinType1', 'BsmtFinType2', 'Heating',\n", " 'HeatingQC', 'CentralAir', 'Electrical', ...])],\n", " verbose_feature_names_out=False)
['LotFrontage', 'LotArea', 'OverallQual', 'OverallCond', 'YearBuilt', 'YearRemodAdd', 'MasVnrArea', 'BsmtFinSF1', 'BsmtFinSF2', 'BsmtUnfSF', 'TotalBsmtSF', '1stFlrSF', '2ndFlrSF', 'LowQualFinSF', 'GrLivArea', 'BsmtFullBath', 'BsmtHalfBath', 'FullBath', 'HalfBath', 'BedroomAbvGr', 'KitchenAbvGr', 'TotRmsAbvGrd', 'GarageYrBlt', 'GarageCars', 'GarageArea', 'WoodDeckSF', 'OpenPorchSF', 'EnclosedPorch', '3SsnPorch', 'ScreenPorch', 'PoolArea', 'MiscVal', 'MoSold', 'YrSold']
SimpleImputer(strategy='median')
StandardScaler()
['MSSubClass', 'MSZoning', 'Street', 'LotShape', 'LandContour', 'Utilities', 'LotConfig', 'LandSlope', 'Neighborhood', 'Condition1', 'Condition2', 'BldgType', 'HouseStyle', 'RoofStyle', 'RoofMatl', 'Exterior1st', 'Exterior2nd', 'MasVnrType', 'ExterQual', 'ExterCond', 'Foundation', 'BsmtQual', 'BsmtCond', 'BsmtExposure', 'BsmtFinType1', 'BsmtFinType2', 'Heating', 'HeatingQC', 'CentralAir', 'Electrical', 'KitchenQual', 'Functional', 'Fireplaces', 'FireplaceQu', 'GarageType', 'GarageFinish', 'GarageQual', 'GarageCond', 'PavedDrive', 'Fence', 'SaleType', 'SaleCondition']
SimpleImputer(strategy='most_frequent')
OneHotEncoder(drop='first', handle_unknown='infrequent_if_exist',\n", " min_frequency=5, sparse_output=False)
Ridge(alpha=21.544346900318846)
Pipeline(steps=[('preproc',\n", " ColumnTransformer(transformers=[('numeric',\n", " Pipeline(steps=[('fill_na',\n", " SimpleImputer(strategy='median')),\n", " ('scale',\n", " StandardScaler())]),\n", " ['LotFrontage', 'LotArea',\n", " 'OverallQual', 'OverallCond',\n", " 'YearBuilt', 'YearRemodAdd',\n", " 'MasVnrArea', 'BsmtFinSF1',\n", " 'BsmtFinSF2', 'BsmtUnfSF',\n", " 'TotalBsmtSF', '1stFlrSF',\n", " '2ndFlrSF', 'LowQualFinSF',\n", " 'GrLivAr...\n", " 'Neighborhood', 'Condition1',\n", " 'Condition2', 'BldgType',\n", " 'HouseStyle', 'RoofStyle',\n", " 'RoofMatl', 'Exterior1st',\n", " 'Exterior2nd', 'MasVnrType',\n", " 'ExterQual', 'ExterCond',\n", " 'Foundation', 'BsmtQual',\n", " 'BsmtCond', 'BsmtExposure',\n", " 'BsmtFinType1',\n", " 'BsmtFinType2', 'Heating',\n", " 'HeatingQC', 'CentralAir',\n", " 'Electrical', ...])],\n", " verbose_feature_names_out=False)),\n", " ('estimator', Ridge(alpha=21.544346900318846))])In a Jupyter environment, please rerun this cell to show the HTML representation or trust the notebook.
Pipeline(steps=[('preproc',\n", " ColumnTransformer(transformers=[('numeric',\n", " Pipeline(steps=[('fill_na',\n", " SimpleImputer(strategy='median')),\n", " ('scale',\n", " StandardScaler())]),\n", " ['LotFrontage', 'LotArea',\n", " 'OverallQual', 'OverallCond',\n", " 'YearBuilt', 'YearRemodAdd',\n", " 'MasVnrArea', 'BsmtFinSF1',\n", " 'BsmtFinSF2', 'BsmtUnfSF',\n", " 'TotalBsmtSF', '1stFlrSF',\n", " '2ndFlrSF', 'LowQualFinSF',\n", " 'GrLivAr...\n", " 'Neighborhood', 'Condition1',\n", " 'Condition2', 'BldgType',\n", " 'HouseStyle', 'RoofStyle',\n", " 'RoofMatl', 'Exterior1st',\n", " 'Exterior2nd', 'MasVnrType',\n", " 'ExterQual', 'ExterCond',\n", " 'Foundation', 'BsmtQual',\n", " 'BsmtCond', 'BsmtExposure',\n", " 'BsmtFinType1',\n", " 'BsmtFinType2', 'Heating',\n", " 'HeatingQC', 'CentralAir',\n", " 'Electrical', ...])],\n", " verbose_feature_names_out=False)),\n", " ('estimator', Ridge(alpha=21.544346900318846))])
ColumnTransformer(transformers=[('numeric',\n", " Pipeline(steps=[('fill_na',\n", " SimpleImputer(strategy='median')),\n", " ('scale', StandardScaler())]),\n", " ['LotFrontage', 'LotArea', 'OverallQual',\n", " 'OverallCond', 'YearBuilt', 'YearRemodAdd',\n", " 'MasVnrArea', 'BsmtFinSF1', 'BsmtFinSF2',\n", " 'BsmtUnfSF', 'TotalBsmtSF', '1stFlrSF',\n", " '2ndFlrSF', 'LowQualFinSF', 'GrLivArea',\n", " 'BsmtFullBath', 'BsmtHal...\n", " 'LotShape', 'LandContour', 'Utilities',\n", " 'LotConfig', 'LandSlope', 'Neighborhood',\n", " 'Condition1', 'Condition2', 'BldgType',\n", " 'HouseStyle', 'RoofStyle', 'RoofMatl',\n", " 'Exterior1st', 'Exterior2nd', 'MasVnrType',\n", " 'ExterQual', 'ExterCond', 'Foundation',\n", " 'BsmtQual', 'BsmtCond', 'BsmtExposure',\n", " 'BsmtFinType1', 'BsmtFinType2', 'Heating',\n", " 'HeatingQC', 'CentralAir', 'Electrical', ...])],\n", " verbose_feature_names_out=False)
['LotFrontage', 'LotArea', 'OverallQual', 'OverallCond', 'YearBuilt', 'YearRemodAdd', 'MasVnrArea', 'BsmtFinSF1', 'BsmtFinSF2', 'BsmtUnfSF', 'TotalBsmtSF', '1stFlrSF', '2ndFlrSF', 'LowQualFinSF', 'GrLivArea', 'BsmtFullBath', 'BsmtHalfBath', 'FullBath', 'HalfBath', 'BedroomAbvGr', 'KitchenAbvGr', 'TotRmsAbvGrd', 'GarageYrBlt', 'GarageCars', 'GarageArea', 'WoodDeckSF', 'OpenPorchSF', 'EnclosedPorch', '3SsnPorch', 'ScreenPorch', 'PoolArea', 'MiscVal', 'MoSold', 'YrSold']
SimpleImputer(strategy='median')
StandardScaler()
['MSSubClass', 'MSZoning', 'Street', 'LotShape', 'LandContour', 'Utilities', 'LotConfig', 'LandSlope', 'Neighborhood', 'Condition1', 'Condition2', 'BldgType', 'HouseStyle', 'RoofStyle', 'RoofMatl', 'Exterior1st', 'Exterior2nd', 'MasVnrType', 'ExterQual', 'ExterCond', 'Foundation', 'BsmtQual', 'BsmtCond', 'BsmtExposure', 'BsmtFinType1', 'BsmtFinType2', 'Heating', 'HeatingQC', 'CentralAir', 'Electrical', 'KitchenQual', 'Functional', 'Fireplaces', 'FireplaceQu', 'GarageType', 'GarageFinish', 'GarageQual', 'GarageCond', 'PavedDrive', 'Fence', 'SaleType', 'SaleCondition']
SimpleImputer(strategy='most_frequent')
OneHotEncoder(drop='first', handle_unknown='infrequent_if_exist',\n", " min_frequency=5, sparse_output=False)
Ridge(alpha=21.544346900318846)
Pipeline(steps=[('preproc',\n", " ColumnTransformer(transformers=[('numeric',\n", " Pipeline(steps=[('fill_na',\n", " SimpleImputer(strategy='most_frequent')),\n", " ('scale',\n", " StandardScaler())]),\n", " ['LotFrontage', 'LotArea',\n", " 'OverallQual', 'OverallCond',\n", " 'YearBuilt', 'YearRemodAdd',\n", " 'MasVnrArea', 'BsmtFinSF1',\n", " 'BsmtFinSF2', 'BsmtUnfSF',\n", " 'TotalBsmtSF', '1stFlrSF',\n", " '2ndFlrSF', 'LowQualFinSF',\n", " '...\n", " 'Neighborhood', 'Condition1',\n", " 'Condition2', 'BldgType',\n", " 'HouseStyle', 'RoofStyle',\n", " 'RoofMatl', 'Exterior1st',\n", " 'Exterior2nd', 'MasVnrType',\n", " 'ExterQual', 'ExterCond',\n", " 'Foundation', 'BsmtQual',\n", " 'BsmtCond', 'BsmtExposure',\n", " 'BsmtFinType1',\n", " 'BsmtFinType2', 'Heating',\n", " 'HeatingQC', 'CentralAir',\n", " 'Electrical', ...])],\n", " verbose_feature_names_out=False)),\n", " ('estimator', Ridge(alpha=21.54))])In a Jupyter environment, please rerun this cell to show the HTML representation or trust the notebook.
Pipeline(steps=[('preproc',\n", " ColumnTransformer(transformers=[('numeric',\n", " Pipeline(steps=[('fill_na',\n", " SimpleImputer(strategy='most_frequent')),\n", " ('scale',\n", " StandardScaler())]),\n", " ['LotFrontage', 'LotArea',\n", " 'OverallQual', 'OverallCond',\n", " 'YearBuilt', 'YearRemodAdd',\n", " 'MasVnrArea', 'BsmtFinSF1',\n", " 'BsmtFinSF2', 'BsmtUnfSF',\n", " 'TotalBsmtSF', '1stFlrSF',\n", " '2ndFlrSF', 'LowQualFinSF',\n", " '...\n", " 'Neighborhood', 'Condition1',\n", " 'Condition2', 'BldgType',\n", " 'HouseStyle', 'RoofStyle',\n", " 'RoofMatl', 'Exterior1st',\n", " 'Exterior2nd', 'MasVnrType',\n", " 'ExterQual', 'ExterCond',\n", " 'Foundation', 'BsmtQual',\n", " 'BsmtCond', 'BsmtExposure',\n", " 'BsmtFinType1',\n", " 'BsmtFinType2', 'Heating',\n", " 'HeatingQC', 'CentralAir',\n", " 'Electrical', ...])],\n", " verbose_feature_names_out=False)),\n", " ('estimator', Ridge(alpha=21.54))])
ColumnTransformer(transformers=[('numeric',\n", " Pipeline(steps=[('fill_na',\n", " SimpleImputer(strategy='most_frequent')),\n", " ('scale', StandardScaler())]),\n", " ['LotFrontage', 'LotArea', 'OverallQual',\n", " 'OverallCond', 'YearBuilt', 'YearRemodAdd',\n", " 'MasVnrArea', 'BsmtFinSF1', 'BsmtFinSF2',\n", " 'BsmtUnfSF', 'TotalBsmtSF', '1stFlrSF',\n", " '2ndFlrSF', 'LowQualFinSF', 'GrLivArea',\n", " 'BsmtFullBath', '...\n", " 'LotShape', 'LandContour', 'Utilities',\n", " 'LotConfig', 'LandSlope', 'Neighborhood',\n", " 'Condition1', 'Condition2', 'BldgType',\n", " 'HouseStyle', 'RoofStyle', 'RoofMatl',\n", " 'Exterior1st', 'Exterior2nd', 'MasVnrType',\n", " 'ExterQual', 'ExterCond', 'Foundation',\n", " 'BsmtQual', 'BsmtCond', 'BsmtExposure',\n", " 'BsmtFinType1', 'BsmtFinType2', 'Heating',\n", " 'HeatingQC', 'CentralAir', 'Electrical', ...])],\n", " verbose_feature_names_out=False)
['LotFrontage', 'LotArea', 'OverallQual', 'OverallCond', 'YearBuilt', 'YearRemodAdd', 'MasVnrArea', 'BsmtFinSF1', 'BsmtFinSF2', 'BsmtUnfSF', 'TotalBsmtSF', '1stFlrSF', '2ndFlrSF', 'LowQualFinSF', 'GrLivArea', 'BsmtFullBath', 'BsmtHalfBath', 'FullBath', 'HalfBath', 'BedroomAbvGr', 'KitchenAbvGr', 'TotRmsAbvGrd', 'GarageYrBlt', 'GarageCars', 'GarageArea', 'WoodDeckSF', 'OpenPorchSF', 'EnclosedPorch', '3SsnPorch', 'ScreenPorch', 'PoolArea', 'MiscVal', 'MoSold', 'YrSold']
SimpleImputer(strategy='most_frequent')
StandardScaler()
['MSSubClass', 'MSZoning', 'Street', 'LotShape', 'LandContour', 'Utilities', 'LotConfig', 'LandSlope', 'Neighborhood', 'Condition1', 'Condition2', 'BldgType', 'HouseStyle', 'RoofStyle', 'RoofMatl', 'Exterior1st', 'Exterior2nd', 'MasVnrType', 'ExterQual', 'ExterCond', 'Foundation', 'BsmtQual', 'BsmtCond', 'BsmtExposure', 'BsmtFinType1', 'BsmtFinType2', 'Heating', 'HeatingQC', 'CentralAir', 'Electrical', 'KitchenQual', 'Functional', 'Fireplaces', 'FireplaceQu', 'GarageType', 'GarageFinish', 'GarageQual', 'GarageCond', 'PavedDrive', 'Fence', 'SaleType', 'SaleCondition']
SimpleImputer(strategy='most_frequent')
OneHotEncoder(drop='first', handle_unknown='infrequent_if_exist',\n", " min_frequency=2, sparse_output=False)
Ridge(alpha=21.54)
Pipeline(steps=[('preproc',\n", " ColumnTransformer(transformers=[('numeric',\n", " Pipeline(steps=[('fill_na',\n", " SimpleImputer(strategy='median')),\n", " ('scale',\n", " StandardScaler())]),\n", " ['LotFrontage', 'LotArea',\n", " 'OverallQual', 'OverallCond',\n", " 'YearBuilt', 'YearRemodAdd',\n", " 'MasVnrArea', 'BsmtFinSF1',\n", " 'BsmtFinSF2', 'BsmtUnfSF',\n", " 'TotalBsmtSF', '1stFlrSF',\n", " '2ndFlrSF', 'LowQualFinSF',\n", " 'GrLivAr...\n", " 'Neighborhood', 'Condition1',\n", " 'Condition2', 'BldgType',\n", " 'HouseStyle', 'RoofStyle',\n", " 'RoofMatl', 'Exterior1st',\n", " 'Exterior2nd', 'MasVnrType',\n", " 'ExterQual', 'ExterCond',\n", " 'Foundation', 'BsmtQual',\n", " 'BsmtCond', 'BsmtExposure',\n", " 'BsmtFinType1',\n", " 'BsmtFinType2', 'Heating',\n", " 'HeatingQC', 'CentralAir',\n", " 'Electrical', ...])],\n", " verbose_feature_names_out=False)),\n", " ('estimator', Ridge(alpha=1))])In a Jupyter environment, please rerun this cell to show the HTML representation or trust the notebook.
Pipeline(steps=[('preproc',\n", " ColumnTransformer(transformers=[('numeric',\n", " Pipeline(steps=[('fill_na',\n", " SimpleImputer(strategy='median')),\n", " ('scale',\n", " StandardScaler())]),\n", " ['LotFrontage', 'LotArea',\n", " 'OverallQual', 'OverallCond',\n", " 'YearBuilt', 'YearRemodAdd',\n", " 'MasVnrArea', 'BsmtFinSF1',\n", " 'BsmtFinSF2', 'BsmtUnfSF',\n", " 'TotalBsmtSF', '1stFlrSF',\n", " '2ndFlrSF', 'LowQualFinSF',\n", " 'GrLivAr...\n", " 'Neighborhood', 'Condition1',\n", " 'Condition2', 'BldgType',\n", " 'HouseStyle', 'RoofStyle',\n", " 'RoofMatl', 'Exterior1st',\n", " 'Exterior2nd', 'MasVnrType',\n", " 'ExterQual', 'ExterCond',\n", " 'Foundation', 'BsmtQual',\n", " 'BsmtCond', 'BsmtExposure',\n", " 'BsmtFinType1',\n", " 'BsmtFinType2', 'Heating',\n", " 'HeatingQC', 'CentralAir',\n", " 'Electrical', ...])],\n", " verbose_feature_names_out=False)),\n", " ('estimator', Ridge(alpha=1))])
ColumnTransformer(transformers=[('numeric',\n", " Pipeline(steps=[('fill_na',\n", " SimpleImputer(strategy='median')),\n", " ('scale', StandardScaler())]),\n", " ['LotFrontage', 'LotArea', 'OverallQual',\n", " 'OverallCond', 'YearBuilt', 'YearRemodAdd',\n", " 'MasVnrArea', 'BsmtFinSF1', 'BsmtFinSF2',\n", " 'BsmtUnfSF', 'TotalBsmtSF', '1stFlrSF',\n", " '2ndFlrSF', 'LowQualFinSF', 'GrLivArea',\n", " 'BsmtFullBath', 'BsmtHal...\n", " 'LotShape', 'LandContour', 'Utilities',\n", " 'LotConfig', 'LandSlope', 'Neighborhood',\n", " 'Condition1', 'Condition2', 'BldgType',\n", " 'HouseStyle', 'RoofStyle', 'RoofMatl',\n", " 'Exterior1st', 'Exterior2nd', 'MasVnrType',\n", " 'ExterQual', 'ExterCond', 'Foundation',\n", " 'BsmtQual', 'BsmtCond', 'BsmtExposure',\n", " 'BsmtFinType1', 'BsmtFinType2', 'Heating',\n", " 'HeatingQC', 'CentralAir', 'Electrical', ...])],\n", " verbose_feature_names_out=False)
['LotFrontage', 'LotArea', 'OverallQual', 'OverallCond', 'YearBuilt', 'YearRemodAdd', 'MasVnrArea', 'BsmtFinSF1', 'BsmtFinSF2', 'BsmtUnfSF', 'TotalBsmtSF', '1stFlrSF', '2ndFlrSF', 'LowQualFinSF', 'GrLivArea', 'BsmtFullBath', 'BsmtHalfBath', 'FullBath', 'HalfBath', 'BedroomAbvGr', 'KitchenAbvGr', 'TotRmsAbvGrd', 'GarageYrBlt', 'GarageCars', 'GarageArea', 'WoodDeckSF', 'OpenPorchSF', 'EnclosedPorch', '3SsnPorch', 'ScreenPorch', 'PoolArea', 'MiscVal', 'MoSold', 'YrSold']
SimpleImputer(strategy='median')
StandardScaler()
['MSSubClass', 'MSZoning', 'Street', 'LotShape', 'LandContour', 'Utilities', 'LotConfig', 'LandSlope', 'Neighborhood', 'Condition1', 'Condition2', 'BldgType', 'HouseStyle', 'RoofStyle', 'RoofMatl', 'Exterior1st', 'Exterior2nd', 'MasVnrType', 'ExterQual', 'ExterCond', 'Foundation', 'BsmtQual', 'BsmtCond', 'BsmtExposure', 'BsmtFinType1', 'BsmtFinType2', 'Heating', 'HeatingQC', 'CentralAir', 'Electrical', 'KitchenQual', 'Functional', 'Fireplaces', 'FireplaceQu', 'GarageType', 'GarageFinish', 'GarageQual', 'GarageCond', 'PavedDrive', 'Fence', 'SaleType', 'SaleCondition']
SimpleImputer(strategy='most_frequent')
OneHotEncoder(drop='first', handle_unknown='infrequent_if_exist',\n", " min_frequency=5, sparse_output=False)
Ridge(alpha=1)
Pipeline(steps=[('preproc',\n", " ColumnTransformer(transformers=[('numeric',\n", " Pipeline(steps=[('fill_na',\n", " SimpleImputer(strategy='most_frequent')),\n", " ('scale',\n", " StandardScaler())]),\n", " ['LotFrontage', 'LotArea',\n", " 'OverallQual', 'OverallCond',\n", " 'YearBuilt', 'YearRemodAdd',\n", " 'MasVnrArea', 'BsmtFinSF1',\n", " 'BsmtFinSF2', 'BsmtUnfSF',\n", " 'TotalBsmtSF', '1stFlrSF',\n", " '2ndFlrSF', 'LowQualFinSF',\n", " '...\n", " 'Neighborhood', 'Condition1',\n", " 'Condition2', 'BldgType',\n", " 'HouseStyle', 'RoofStyle',\n", " 'RoofMatl', 'Exterior1st',\n", " 'Exterior2nd', 'MasVnrType',\n", " 'ExterQual', 'ExterCond',\n", " 'Foundation', 'BsmtQual',\n", " 'BsmtCond', 'BsmtExposure',\n", " 'BsmtFinType1',\n", " 'BsmtFinType2', 'Heating',\n", " 'HeatingQC', 'CentralAir',\n", " 'Electrical', ...])],\n", " verbose_feature_names_out=False)),\n", " ('estimator', Ridge(alpha=21.54))])In a Jupyter environment, please rerun this cell to show the HTML representation or trust the notebook.
Pipeline(steps=[('preproc',\n", " ColumnTransformer(transformers=[('numeric',\n", " Pipeline(steps=[('fill_na',\n", " SimpleImputer(strategy='most_frequent')),\n", " ('scale',\n", " StandardScaler())]),\n", " ['LotFrontage', 'LotArea',\n", " 'OverallQual', 'OverallCond',\n", " 'YearBuilt', 'YearRemodAdd',\n", " 'MasVnrArea', 'BsmtFinSF1',\n", " 'BsmtFinSF2', 'BsmtUnfSF',\n", " 'TotalBsmtSF', '1stFlrSF',\n", " '2ndFlrSF', 'LowQualFinSF',\n", " '...\n", " 'Neighborhood', 'Condition1',\n", " 'Condition2', 'BldgType',\n", " 'HouseStyle', 'RoofStyle',\n", " 'RoofMatl', 'Exterior1st',\n", " 'Exterior2nd', 'MasVnrType',\n", " 'ExterQual', 'ExterCond',\n", " 'Foundation', 'BsmtQual',\n", " 'BsmtCond', 'BsmtExposure',\n", " 'BsmtFinType1',\n", " 'BsmtFinType2', 'Heating',\n", " 'HeatingQC', 'CentralAir',\n", " 'Electrical', ...])],\n", " verbose_feature_names_out=False)),\n", " ('estimator', Ridge(alpha=21.54))])
ColumnTransformer(transformers=[('numeric',\n", " Pipeline(steps=[('fill_na',\n", " SimpleImputer(strategy='most_frequent')),\n", " ('scale', StandardScaler())]),\n", " ['LotFrontage', 'LotArea', 'OverallQual',\n", " 'OverallCond', 'YearBuilt', 'YearRemodAdd',\n", " 'MasVnrArea', 'BsmtFinSF1', 'BsmtFinSF2',\n", " 'BsmtUnfSF', 'TotalBsmtSF', '1stFlrSF',\n", " '2ndFlrSF', 'LowQualFinSF', 'GrLivArea',\n", " 'BsmtFullBath', '...\n", " 'LotShape', 'LandContour', 'Utilities',\n", " 'LotConfig', 'LandSlope', 'Neighborhood',\n", " 'Condition1', 'Condition2', 'BldgType',\n", " 'HouseStyle', 'RoofStyle', 'RoofMatl',\n", " 'Exterior1st', 'Exterior2nd', 'MasVnrType',\n", " 'ExterQual', 'ExterCond', 'Foundation',\n", " 'BsmtQual', 'BsmtCond', 'BsmtExposure',\n", " 'BsmtFinType1', 'BsmtFinType2', 'Heating',\n", " 'HeatingQC', 'CentralAir', 'Electrical', ...])],\n", " verbose_feature_names_out=False)
['LotFrontage', 'LotArea', 'OverallQual', 'OverallCond', 'YearBuilt', 'YearRemodAdd', 'MasVnrArea', 'BsmtFinSF1', 'BsmtFinSF2', 'BsmtUnfSF', 'TotalBsmtSF', '1stFlrSF', '2ndFlrSF', 'LowQualFinSF', 'GrLivArea', 'BsmtFullBath', 'BsmtHalfBath', 'FullBath', 'HalfBath', 'BedroomAbvGr', 'KitchenAbvGr', 'TotRmsAbvGrd', 'GarageYrBlt', 'GarageCars', 'GarageArea', 'WoodDeckSF', 'OpenPorchSF', 'EnclosedPorch', '3SsnPorch', 'ScreenPorch', 'PoolArea', 'MiscVal', 'MoSold', 'YrSold']
SimpleImputer(strategy='most_frequent')
StandardScaler()
['MSSubClass', 'MSZoning', 'Street', 'LotShape', 'LandContour', 'Utilities', 'LotConfig', 'LandSlope', 'Neighborhood', 'Condition1', 'Condition2', 'BldgType', 'HouseStyle', 'RoofStyle', 'RoofMatl', 'Exterior1st', 'Exterior2nd', 'MasVnrType', 'ExterQual', 'ExterCond', 'Foundation', 'BsmtQual', 'BsmtCond', 'BsmtExposure', 'BsmtFinType1', 'BsmtFinType2', 'Heating', 'HeatingQC', 'CentralAir', 'Electrical', 'KitchenQual', 'Functional', 'Fireplaces', 'FireplaceQu', 'GarageType', 'GarageFinish', 'GarageQual', 'GarageCond', 'PavedDrive', 'Fence', 'SaleType', 'SaleCondition']
SimpleImputer(strategy='most_frequent')
OneHotEncoder(drop='first', handle_unknown='infrequent_if_exist',\n", " min_frequency=2, sparse_output=False)
Ridge(alpha=21.54)
Pipeline(steps=[('preproc',\n", " ColumnTransformer(transformers=[('numeric',\n", " Pipeline(steps=[('fill_na',\n", " SimpleImputer(strategy='most_frequent')),\n", " ('scale',\n", " StandardScaler())]),\n", " ['LotFrontage', 'LotArea',\n", " 'OverallQual', 'OverallCond',\n", " 'YearBuilt', 'YearRemodAdd',\n", " 'MasVnrArea', 'BsmtFinSF1',\n", " 'BsmtFinSF2', 'BsmtUnfSF',\n", " 'TotalBsmtSF', '1stFlrSF',\n", " '2ndFlrSF', 'LowQualFinSF',\n", " '...\n", " 'Neighborhood', 'Condition1',\n", " 'Condition2', 'BldgType',\n", " 'HouseStyle', 'RoofStyle',\n", " 'RoofMatl', 'Exterior1st',\n", " 'Exterior2nd', 'MasVnrType',\n", " 'ExterQual', 'ExterCond',\n", " 'Foundation', 'BsmtQual',\n", " 'BsmtCond', 'BsmtExposure',\n", " 'BsmtFinType1',\n", " 'BsmtFinType2', 'Heating',\n", " 'HeatingQC', 'CentralAir',\n", " 'Electrical', ...])],\n", " verbose_feature_names_out=False)),\n", " ('estimator', GradientBoostingRegressor())])In a Jupyter environment, please rerun this cell to show the HTML representation or trust the notebook.
Pipeline(steps=[('preproc',\n", " ColumnTransformer(transformers=[('numeric',\n", " Pipeline(steps=[('fill_na',\n", " SimpleImputer(strategy='most_frequent')),\n", " ('scale',\n", " StandardScaler())]),\n", " ['LotFrontage', 'LotArea',\n", " 'OverallQual', 'OverallCond',\n", " 'YearBuilt', 'YearRemodAdd',\n", " 'MasVnrArea', 'BsmtFinSF1',\n", " 'BsmtFinSF2', 'BsmtUnfSF',\n", " 'TotalBsmtSF', '1stFlrSF',\n", " '2ndFlrSF', 'LowQualFinSF',\n", " '...\n", " 'Neighborhood', 'Condition1',\n", " 'Condition2', 'BldgType',\n", " 'HouseStyle', 'RoofStyle',\n", " 'RoofMatl', 'Exterior1st',\n", " 'Exterior2nd', 'MasVnrType',\n", " 'ExterQual', 'ExterCond',\n", " 'Foundation', 'BsmtQual',\n", " 'BsmtCond', 'BsmtExposure',\n", " 'BsmtFinType1',\n", " 'BsmtFinType2', 'Heating',\n", " 'HeatingQC', 'CentralAir',\n", " 'Electrical', ...])],\n", " verbose_feature_names_out=False)),\n", " ('estimator', GradientBoostingRegressor())])
ColumnTransformer(transformers=[('numeric',\n", " Pipeline(steps=[('fill_na',\n", " SimpleImputer(strategy='most_frequent')),\n", " ('scale', StandardScaler())]),\n", " ['LotFrontage', 'LotArea', 'OverallQual',\n", " 'OverallCond', 'YearBuilt', 'YearRemodAdd',\n", " 'MasVnrArea', 'BsmtFinSF1', 'BsmtFinSF2',\n", " 'BsmtUnfSF', 'TotalBsmtSF', '1stFlrSF',\n", " '2ndFlrSF', 'LowQualFinSF', 'GrLivArea',\n", " 'BsmtFullBath', '...\n", " 'LotShape', 'LandContour', 'Utilities',\n", " 'LotConfig', 'LandSlope', 'Neighborhood',\n", " 'Condition1', 'Condition2', 'BldgType',\n", " 'HouseStyle', 'RoofStyle', 'RoofMatl',\n", " 'Exterior1st', 'Exterior2nd', 'MasVnrType',\n", " 'ExterQual', 'ExterCond', 'Foundation',\n", " 'BsmtQual', 'BsmtCond', 'BsmtExposure',\n", " 'BsmtFinType1', 'BsmtFinType2', 'Heating',\n", " 'HeatingQC', 'CentralAir', 'Electrical', ...])],\n", " verbose_feature_names_out=False)
['LotFrontage', 'LotArea', 'OverallQual', 'OverallCond', 'YearBuilt', 'YearRemodAdd', 'MasVnrArea', 'BsmtFinSF1', 'BsmtFinSF2', 'BsmtUnfSF', 'TotalBsmtSF', '1stFlrSF', '2ndFlrSF', 'LowQualFinSF', 'GrLivArea', 'BsmtFullBath', 'BsmtHalfBath', 'FullBath', 'HalfBath', 'BedroomAbvGr', 'KitchenAbvGr', 'TotRmsAbvGrd', 'GarageYrBlt', 'GarageCars', 'GarageArea', 'WoodDeckSF', 'OpenPorchSF', 'EnclosedPorch', '3SsnPorch', 'ScreenPorch', 'PoolArea', 'MiscVal', 'MoSold', 'YrSold']
SimpleImputer(strategy='most_frequent')
StandardScaler()
['MSSubClass', 'MSZoning', 'Street', 'LotShape', 'LandContour', 'Utilities', 'LotConfig', 'LandSlope', 'Neighborhood', 'Condition1', 'Condition2', 'BldgType', 'HouseStyle', 'RoofStyle', 'RoofMatl', 'Exterior1st', 'Exterior2nd', 'MasVnrType', 'ExterQual', 'ExterCond', 'Foundation', 'BsmtQual', 'BsmtCond', 'BsmtExposure', 'BsmtFinType1', 'BsmtFinType2', 'Heating', 'HeatingQC', 'CentralAir', 'Electrical', 'KitchenQual', 'Functional', 'Fireplaces', 'FireplaceQu', 'GarageType', 'GarageFinish', 'GarageQual', 'GarageCond', 'PavedDrive', 'Fence', 'SaleType', 'SaleCondition']
SimpleImputer(strategy='most_frequent')
OneHotEncoder(drop='first', handle_unknown='infrequent_if_exist',\n", " min_frequency=2, sparse_output=False)
GradientBoostingRegressor()
Pipeline(steps=[('preproc',\n", " ColumnTransformer(transformers=[('numeric',\n", " Pipeline(steps=[('fill_na',\n", " SimpleImputer(strategy='median')),\n", " ('scale',\n", " StandardScaler())]),\n", " ['LotFrontage', 'LotArea',\n", " 'OverallQual', 'OverallCond',\n", " 'YearBuilt', 'YearRemodAdd',\n", " 'MasVnrArea', 'BsmtFinSF1',\n", " 'BsmtFinSF2', 'BsmtUnfSF',\n", " 'TotalBsmtSF', '1stFlrSF',\n", " '2ndFlrSF', 'LowQualFinSF',\n", " 'GrLivAr...\n", " 'Condition2', 'BldgType',\n", " 'HouseStyle', 'RoofStyle',\n", " 'RoofMatl', 'Exterior1st',\n", " 'Exterior2nd', 'MasVnrType',\n", " 'ExterQual', 'ExterCond',\n", " 'Foundation', 'BsmtQual',\n", " 'BsmtCond', 'BsmtExposure',\n", " 'BsmtFinType1',\n", " 'BsmtFinType2', 'Heating',\n", " 'HeatingQC', 'CentralAir',\n", " 'Electrical', ...])],\n", " verbose_feature_names_out=False)),\n", " ('feature_selection', PCA(n_components=10)),\n", " ('estimator', Ridge(alpha=1))])In a Jupyter environment, please rerun this cell to show the HTML representation or trust the notebook.
Pipeline(steps=[('preproc',\n", " ColumnTransformer(transformers=[('numeric',\n", " Pipeline(steps=[('fill_na',\n", " SimpleImputer(strategy='median')),\n", " ('scale',\n", " StandardScaler())]),\n", " ['LotFrontage', 'LotArea',\n", " 'OverallQual', 'OverallCond',\n", " 'YearBuilt', 'YearRemodAdd',\n", " 'MasVnrArea', 'BsmtFinSF1',\n", " 'BsmtFinSF2', 'BsmtUnfSF',\n", " 'TotalBsmtSF', '1stFlrSF',\n", " '2ndFlrSF', 'LowQualFinSF',\n", " 'GrLivAr...\n", " 'Condition2', 'BldgType',\n", " 'HouseStyle', 'RoofStyle',\n", " 'RoofMatl', 'Exterior1st',\n", " 'Exterior2nd', 'MasVnrType',\n", " 'ExterQual', 'ExterCond',\n", " 'Foundation', 'BsmtQual',\n", " 'BsmtCond', 'BsmtExposure',\n", " 'BsmtFinType1',\n", " 'BsmtFinType2', 'Heating',\n", " 'HeatingQC', 'CentralAir',\n", " 'Electrical', ...])],\n", " verbose_feature_names_out=False)),\n", " ('feature_selection', PCA(n_components=10)),\n", " ('estimator', Ridge(alpha=1))])
ColumnTransformer(transformers=[('numeric',\n", " Pipeline(steps=[('fill_na',\n", " SimpleImputer(strategy='median')),\n", " ('scale', StandardScaler())]),\n", " ['LotFrontage', 'LotArea', 'OverallQual',\n", " 'OverallCond', 'YearBuilt', 'YearRemodAdd',\n", " 'MasVnrArea', 'BsmtFinSF1', 'BsmtFinSF2',\n", " 'BsmtUnfSF', 'TotalBsmtSF', '1stFlrSF',\n", " '2ndFlrSF', 'LowQualFinSF', 'GrLivArea',\n", " 'BsmtFullBath', 'BsmtHal...\n", " 'LotShape', 'LandContour', 'Utilities',\n", " 'LotConfig', 'LandSlope', 'Neighborhood',\n", " 'Condition1', 'Condition2', 'BldgType',\n", " 'HouseStyle', 'RoofStyle', 'RoofMatl',\n", " 'Exterior1st', 'Exterior2nd', 'MasVnrType',\n", " 'ExterQual', 'ExterCond', 'Foundation',\n", " 'BsmtQual', 'BsmtCond', 'BsmtExposure',\n", " 'BsmtFinType1', 'BsmtFinType2', 'Heating',\n", " 'HeatingQC', 'CentralAir', 'Electrical', ...])],\n", " verbose_feature_names_out=False)
['LotFrontage', 'LotArea', 'OverallQual', 'OverallCond', 'YearBuilt', 'YearRemodAdd', 'MasVnrArea', 'BsmtFinSF1', 'BsmtFinSF2', 'BsmtUnfSF', 'TotalBsmtSF', '1stFlrSF', '2ndFlrSF', 'LowQualFinSF', 'GrLivArea', 'BsmtFullBath', 'BsmtHalfBath', 'FullBath', 'HalfBath', 'BedroomAbvGr', 'KitchenAbvGr', 'TotRmsAbvGrd', 'GarageYrBlt', 'GarageCars', 'GarageArea', 'WoodDeckSF', 'OpenPorchSF', 'EnclosedPorch', '3SsnPorch', 'ScreenPorch', 'PoolArea', 'MiscVal', 'MoSold', 'YrSold']
SimpleImputer(strategy='median')
StandardScaler()
['MSSubClass', 'MSZoning', 'Street', 'LotShape', 'LandContour', 'Utilities', 'LotConfig', 'LandSlope', 'Neighborhood', 'Condition1', 'Condition2', 'BldgType', 'HouseStyle', 'RoofStyle', 'RoofMatl', 'Exterior1st', 'Exterior2nd', 'MasVnrType', 'ExterQual', 'ExterCond', 'Foundation', 'BsmtQual', 'BsmtCond', 'BsmtExposure', 'BsmtFinType1', 'BsmtFinType2', 'Heating', 'HeatingQC', 'CentralAir', 'Electrical', 'KitchenQual', 'Functional', 'Fireplaces', 'FireplaceQu', 'GarageType', 'GarageFinish', 'GarageQual', 'GarageCond', 'PavedDrive', 'Fence', 'SaleType', 'SaleCondition']
SimpleImputer(strategy='most_frequent')
OneHotEncoder(drop='first', handle_unknown='infrequent_if_exist',\n", " min_frequency=5, sparse_output=False)
PCA(n_components=10)
Ridge(alpha=1)
Pipeline(steps=[('preproc',\n", " ColumnTransformer(transformers=[('numeric',\n", " Pipeline(steps=[('fill_na',\n", " SimpleImputer(strategy='most_frequent')),\n", " ('scale',\n", " StandardScaler())]),\n", " ['LotFrontage', 'LotArea',\n", " 'OverallQual', 'OverallCond',\n", " 'YearBuilt', 'YearRemodAdd',\n", " 'MasVnrArea', 'BsmtFinSF1',\n", " 'BsmtFinSF2', 'BsmtUnfSF',\n", " 'TotalBsmtSF', '1stFlrSF',\n", " '2ndFlrSF', 'LowQualFinSF',\n", " '...\n", " 'Condition2', 'BldgType',\n", " 'HouseStyle', 'RoofStyle',\n", " 'RoofMatl', 'Exterior1st',\n", " 'Exterior2nd', 'MasVnrType',\n", " 'ExterQual', 'ExterCond',\n", " 'Foundation', 'BsmtQual',\n", " 'BsmtCond', 'BsmtExposure',\n", " 'BsmtFinType1',\n", " 'BsmtFinType2', 'Heating',\n", " 'HeatingQC', 'CentralAir',\n", " 'Electrical', ...])],\n", " verbose_feature_names_out=False)),\n", " ('feature_selection', 'passthrough'),\n", " ('estimator', Ridge(alpha=21.54))])In a Jupyter environment, please rerun this cell to show the HTML representation or trust the notebook.
Pipeline(steps=[('preproc',\n", " ColumnTransformer(transformers=[('numeric',\n", " Pipeline(steps=[('fill_na',\n", " SimpleImputer(strategy='most_frequent')),\n", " ('scale',\n", " StandardScaler())]),\n", " ['LotFrontage', 'LotArea',\n", " 'OverallQual', 'OverallCond',\n", " 'YearBuilt', 'YearRemodAdd',\n", " 'MasVnrArea', 'BsmtFinSF1',\n", " 'BsmtFinSF2', 'BsmtUnfSF',\n", " 'TotalBsmtSF', '1stFlrSF',\n", " '2ndFlrSF', 'LowQualFinSF',\n", " '...\n", " 'Condition2', 'BldgType',\n", " 'HouseStyle', 'RoofStyle',\n", " 'RoofMatl', 'Exterior1st',\n", " 'Exterior2nd', 'MasVnrType',\n", " 'ExterQual', 'ExterCond',\n", " 'Foundation', 'BsmtQual',\n", " 'BsmtCond', 'BsmtExposure',\n", " 'BsmtFinType1',\n", " 'BsmtFinType2', 'Heating',\n", " 'HeatingQC', 'CentralAir',\n", " 'Electrical', ...])],\n", " verbose_feature_names_out=False)),\n", " ('feature_selection', 'passthrough'),\n", " ('estimator', Ridge(alpha=21.54))])
ColumnTransformer(transformers=[('numeric',\n", " Pipeline(steps=[('fill_na',\n", " SimpleImputer(strategy='most_frequent')),\n", " ('scale', StandardScaler())]),\n", " ['LotFrontage', 'LotArea', 'OverallQual',\n", " 'OverallCond', 'YearBuilt', 'YearRemodAdd',\n", " 'MasVnrArea', 'BsmtFinSF1', 'BsmtFinSF2',\n", " 'BsmtUnfSF', 'TotalBsmtSF', '1stFlrSF',\n", " '2ndFlrSF', 'LowQualFinSF', 'GrLivArea',\n", " 'BsmtFullBath', '...\n", " 'LotShape', 'LandContour', 'Utilities',\n", " 'LotConfig', 'LandSlope', 'Neighborhood',\n", " 'Condition1', 'Condition2', 'BldgType',\n", " 'HouseStyle', 'RoofStyle', 'RoofMatl',\n", " 'Exterior1st', 'Exterior2nd', 'MasVnrType',\n", " 'ExterQual', 'ExterCond', 'Foundation',\n", " 'BsmtQual', 'BsmtCond', 'BsmtExposure',\n", " 'BsmtFinType1', 'BsmtFinType2', 'Heating',\n", " 'HeatingQC', 'CentralAir', 'Electrical', ...])],\n", " verbose_feature_names_out=False)
['LotFrontage', 'LotArea', 'OverallQual', 'OverallCond', 'YearBuilt', 'YearRemodAdd', 'MasVnrArea', 'BsmtFinSF1', 'BsmtFinSF2', 'BsmtUnfSF', 'TotalBsmtSF', '1stFlrSF', '2ndFlrSF', 'LowQualFinSF', 'GrLivArea', 'BsmtFullBath', 'BsmtHalfBath', 'FullBath', 'HalfBath', 'BedroomAbvGr', 'KitchenAbvGr', 'TotRmsAbvGrd', 'GarageYrBlt', 'GarageCars', 'GarageArea', 'WoodDeckSF', 'OpenPorchSF', 'EnclosedPorch', '3SsnPorch', 'ScreenPorch', 'PoolArea', 'MiscVal', 'MoSold', 'YrSold']
SimpleImputer(strategy='most_frequent')
StandardScaler()
['MSSubClass', 'MSZoning', 'Street', 'LotShape', 'LandContour', 'Utilities', 'LotConfig', 'LandSlope', 'Neighborhood', 'Condition1', 'Condition2', 'BldgType', 'HouseStyle', 'RoofStyle', 'RoofMatl', 'Exterior1st', 'Exterior2nd', 'MasVnrType', 'ExterQual', 'ExterCond', 'Foundation', 'BsmtQual', 'BsmtCond', 'BsmtExposure', 'BsmtFinType1', 'BsmtFinType2', 'Heating', 'HeatingQC', 'CentralAir', 'Electrical', 'KitchenQual', 'Functional', 'Fireplaces', 'FireplaceQu', 'GarageType', 'GarageFinish', 'GarageQual', 'GarageCond', 'PavedDrive', 'Fence', 'SaleType', 'SaleCondition']
SimpleImputer(strategy='most_frequent')
OneHotEncoder(drop='first', handle_unknown='infrequent_if_exist',\n", " min_frequency=2, sparse_output=False)
passthrough
Ridge(alpha=21.54)
Pipeline(steps=[('preproc',\n", " ColumnTransformer(transformers=[('numeric',\n", " Pipeline(steps=[('fill_na',\n", " SimpleImputer(strategy='most_frequent')),\n", " ('scale',\n", " StandardScaler())]),\n", " ['LotFrontage', 'LotArea',\n", " 'OverallQual', 'OverallCond',\n", " 'YearBuilt', 'YearRemodAdd',\n", " 'MasVnrArea', 'BsmtFinSF1',\n", " 'BsmtFinSF2', 'BsmtUnfSF',\n", " 'TotalBsmtSF', '1stFlrSF',\n", " '2ndFlrSF', 'LowQualFinSF',\n", " '...\n", " 'Condition2', 'BldgType',\n", " 'HouseStyle', 'RoofStyle',\n", " 'RoofMatl', 'Exterior1st',\n", " 'Exterior2nd', 'MasVnrType',\n", " 'ExterQual', 'ExterCond',\n", " 'Foundation', 'BsmtQual',\n", " 'BsmtCond', 'BsmtExposure',\n", " 'BsmtFinType1',\n", " 'BsmtFinType2', 'Heating',\n", " 'HeatingQC', 'CentralAir',\n", " 'Electrical', ...])],\n", " verbose_feature_names_out=False)),\n", " ('feature_selection', 'passthrough'),\n", " ('estimator', Ridge(alpha=21.54))])In a Jupyter environment, please rerun this cell to show the HTML representation or trust the notebook.
Pipeline(steps=[('preproc',\n", " ColumnTransformer(transformers=[('numeric',\n", " Pipeline(steps=[('fill_na',\n", " SimpleImputer(strategy='most_frequent')),\n", " ('scale',\n", " StandardScaler())]),\n", " ['LotFrontage', 'LotArea',\n", " 'OverallQual', 'OverallCond',\n", " 'YearBuilt', 'YearRemodAdd',\n", " 'MasVnrArea', 'BsmtFinSF1',\n", " 'BsmtFinSF2', 'BsmtUnfSF',\n", " 'TotalBsmtSF', '1stFlrSF',\n", " '2ndFlrSF', 'LowQualFinSF',\n", " '...\n", " 'Condition2', 'BldgType',\n", " 'HouseStyle', 'RoofStyle',\n", " 'RoofMatl', 'Exterior1st',\n", " 'Exterior2nd', 'MasVnrType',\n", " 'ExterQual', 'ExterCond',\n", " 'Foundation', 'BsmtQual',\n", " 'BsmtCond', 'BsmtExposure',\n", " 'BsmtFinType1',\n", " 'BsmtFinType2', 'Heating',\n", " 'HeatingQC', 'CentralAir',\n", " 'Electrical', ...])],\n", " verbose_feature_names_out=False)),\n", " ('feature_selection', 'passthrough'),\n", " ('estimator', Ridge(alpha=21.54))])
ColumnTransformer(transformers=[('numeric',\n", " Pipeline(steps=[('fill_na',\n", " SimpleImputer(strategy='most_frequent')),\n", " ('scale', StandardScaler())]),\n", " ['LotFrontage', 'LotArea', 'OverallQual',\n", " 'OverallCond', 'YearBuilt', 'YearRemodAdd',\n", " 'MasVnrArea', 'BsmtFinSF1', 'BsmtFinSF2',\n", " 'BsmtUnfSF', 'TotalBsmtSF', '1stFlrSF',\n", " '2ndFlrSF', 'LowQualFinSF', 'GrLivArea',\n", " 'BsmtFullBath', '...\n", " 'LotShape', 'LandContour', 'Utilities',\n", " 'LotConfig', 'LandSlope', 'Neighborhood',\n", " 'Condition1', 'Condition2', 'BldgType',\n", " 'HouseStyle', 'RoofStyle', 'RoofMatl',\n", " 'Exterior1st', 'Exterior2nd', 'MasVnrType',\n", " 'ExterQual', 'ExterCond', 'Foundation',\n", " 'BsmtQual', 'BsmtCond', 'BsmtExposure',\n", " 'BsmtFinType1', 'BsmtFinType2', 'Heating',\n", " 'HeatingQC', 'CentralAir', 'Electrical', ...])],\n", " verbose_feature_names_out=False)
['LotFrontage', 'LotArea', 'OverallQual', 'OverallCond', 'YearBuilt', 'YearRemodAdd', 'MasVnrArea', 'BsmtFinSF1', 'BsmtFinSF2', 'BsmtUnfSF', 'TotalBsmtSF', '1stFlrSF', '2ndFlrSF', 'LowQualFinSF', 'GrLivArea', 'BsmtFullBath', 'BsmtHalfBath', 'FullBath', 'HalfBath', 'BedroomAbvGr', 'KitchenAbvGr', 'TotRmsAbvGrd', 'GarageYrBlt', 'GarageCars', 'GarageArea', 'WoodDeckSF', 'OpenPorchSF', 'EnclosedPorch', '3SsnPorch', 'ScreenPorch', 'PoolArea', 'MiscVal', 'MoSold', 'YrSold']
SimpleImputer(strategy='most_frequent')
StandardScaler()
['MSSubClass', 'MSZoning', 'Street', 'LotShape', 'LandContour', 'Utilities', 'LotConfig', 'LandSlope', 'Neighborhood', 'Condition1', 'Condition2', 'BldgType', 'HouseStyle', 'RoofStyle', 'RoofMatl', 'Exterior1st', 'Exterior2nd', 'MasVnrType', 'ExterQual', 'ExterCond', 'Foundation', 'BsmtQual', 'BsmtCond', 'BsmtExposure', 'BsmtFinType1', 'BsmtFinType2', 'Heating', 'HeatingQC', 'CentralAir', 'Electrical', 'KitchenQual', 'Functional', 'Fireplaces', 'FireplaceQu', 'GarageType', 'GarageFinish', 'GarageQual', 'GarageCond', 'PavedDrive', 'Fence', 'SaleType', 'SaleCondition']
SimpleImputer(strategy='most_frequent')
OneHotEncoder(drop='first', handle_unknown='infrequent_if_exist',\n", " min_frequency=2, sparse_output=False)
passthrough
Ridge(alpha=21.54)
Pipeline(steps=[('preproc',\n", " ColumnTransformer(transformers=[('numeric',\n", " Pipeline(steps=[('fill_na',\n", " SimpleImputer(strategy='most_frequent')),\n", " ('scale',\n", " StandardScaler())]),\n", " ['LotFrontage', 'LotArea',\n", " 'OverallQual', 'OverallCond',\n", " 'YearBuilt', 'YearRemodAdd',\n", " 'MasVnrArea', 'BsmtFinSF1',\n", " 'BsmtFinSF2', 'BsmtUnfSF',\n", " 'TotalBsmtSF', '1stFlrSF',\n", " '2ndFlrSF', 'LowQualFinSF',\n", " '...\n", " 'Condition2', 'BldgType',\n", " 'HouseStyle', 'RoofStyle',\n", " 'RoofMatl', 'Exterior1st',\n", " 'Exterior2nd', 'MasVnrType',\n", " 'ExterQual', 'ExterCond',\n", " 'Foundation', 'BsmtQual',\n", " 'BsmtCond', 'BsmtExposure',\n", " 'BsmtFinType1',\n", " 'BsmtFinType2', 'Heating',\n", " 'HeatingQC', 'CentralAir',\n", " 'Electrical', ...])],\n", " verbose_feature_names_out=False)),\n", " ('feature_selection', 'passthrough'),\n", " ('estimator', Ridge(alpha=21.54))])In a Jupyter environment, please rerun this cell to show the HTML representation or trust the notebook.
Pipeline(steps=[('preproc',\n", " ColumnTransformer(transformers=[('numeric',\n", " Pipeline(steps=[('fill_na',\n", " SimpleImputer(strategy='most_frequent')),\n", " ('scale',\n", " StandardScaler())]),\n", " ['LotFrontage', 'LotArea',\n", " 'OverallQual', 'OverallCond',\n", " 'YearBuilt', 'YearRemodAdd',\n", " 'MasVnrArea', 'BsmtFinSF1',\n", " 'BsmtFinSF2', 'BsmtUnfSF',\n", " 'TotalBsmtSF', '1stFlrSF',\n", " '2ndFlrSF', 'LowQualFinSF',\n", " '...\n", " 'Condition2', 'BldgType',\n", " 'HouseStyle', 'RoofStyle',\n", " 'RoofMatl', 'Exterior1st',\n", " 'Exterior2nd', 'MasVnrType',\n", " 'ExterQual', 'ExterCond',\n", " 'Foundation', 'BsmtQual',\n", " 'BsmtCond', 'BsmtExposure',\n", " 'BsmtFinType1',\n", " 'BsmtFinType2', 'Heating',\n", " 'HeatingQC', 'CentralAir',\n", " 'Electrical', ...])],\n", " verbose_feature_names_out=False)),\n", " ('feature_selection', 'passthrough'),\n", " ('estimator', Ridge(alpha=21.54))])
ColumnTransformer(transformers=[('numeric',\n", " Pipeline(steps=[('fill_na',\n", " SimpleImputer(strategy='most_frequent')),\n", " ('scale', StandardScaler())]),\n", " ['LotFrontage', 'LotArea', 'OverallQual',\n", " 'OverallCond', 'YearBuilt', 'YearRemodAdd',\n", " 'MasVnrArea', 'BsmtFinSF1', 'BsmtFinSF2',\n", " 'BsmtUnfSF', 'TotalBsmtSF', '1stFlrSF',\n", " '2ndFlrSF', 'LowQualFinSF', 'GrLivArea',\n", " 'BsmtFullBath', '...\n", " 'LotShape', 'LandContour', 'Utilities',\n", " 'LotConfig', 'LandSlope', 'Neighborhood',\n", " 'Condition1', 'Condition2', 'BldgType',\n", " 'HouseStyle', 'RoofStyle', 'RoofMatl',\n", " 'Exterior1st', 'Exterior2nd', 'MasVnrType',\n", " 'ExterQual', 'ExterCond', 'Foundation',\n", " 'BsmtQual', 'BsmtCond', 'BsmtExposure',\n", " 'BsmtFinType1', 'BsmtFinType2', 'Heating',\n", " 'HeatingQC', 'CentralAir', 'Electrical', ...])],\n", " verbose_feature_names_out=False)
['LotFrontage', 'LotArea', 'OverallQual', 'OverallCond', 'YearBuilt', 'YearRemodAdd', 'MasVnrArea', 'BsmtFinSF1', 'BsmtFinSF2', 'BsmtUnfSF', 'TotalBsmtSF', '1stFlrSF', '2ndFlrSF', 'LowQualFinSF', 'GrLivArea', 'BsmtFullBath', 'BsmtHalfBath', 'FullBath', 'HalfBath', 'BedroomAbvGr', 'KitchenAbvGr', 'TotRmsAbvGrd', 'GarageYrBlt', 'GarageCars', 'GarageArea', 'WoodDeckSF', 'OpenPorchSF', 'EnclosedPorch', '3SsnPorch', 'ScreenPorch', 'PoolArea', 'MiscVal', 'MoSold', 'YrSold']
SimpleImputer(strategy='most_frequent')
StandardScaler()
['MSSubClass', 'MSZoning', 'Street', 'LotShape', 'LandContour', 'Utilities', 'LotConfig', 'LandSlope', 'Neighborhood', 'Condition1', 'Condition2', 'BldgType', 'HouseStyle', 'RoofStyle', 'RoofMatl', 'Exterior1st', 'Exterior2nd', 'MasVnrType', 'ExterQual', 'ExterCond', 'Foundation', 'BsmtQual', 'BsmtCond', 'BsmtExposure', 'BsmtFinType1', 'BsmtFinType2', 'Heating', 'HeatingQC', 'CentralAir', 'Electrical', 'KitchenQual', 'Functional', 'Fireplaces', 'FireplaceQu', 'GarageType', 'GarageFinish', 'GarageQual', 'GarageCond', 'PavedDrive', 'Fence', 'SaleType', 'SaleCondition']
SimpleImputer(strategy='most_frequent')
OneHotEncoder(drop='first', handle_unknown='infrequent_if_exist',\n", " min_frequency=2, sparse_output=False)
passthrough
Ridge(alpha=21.54)