# IMPORTING PACKAGES
import pandas as pd # data processing
import numpy as np # working with arrays
import [Link] as plt # visualization
import seaborn as sb # visualization
from termcolor import colored as cl # text customization
from sklearn.model_selection import train_test_split # data split
from sklearn.linear_model import LinearRegression # OLS algorithm
from sklearn.linear_model import Ridge # Ridge algorithm
from sklearn.linear_model import Lasso # Lasso algorithm
from sklearn.linear_model import BayesianRidge # Bayesian algorithm
from sklearn.linear_model import ElasticNet # ElasticNet algorithm
from [Link] import explained_variance_score as evs # evaluation metric
from [Link] import r2_score as r2 # evaluation metric
sb.set_style('whitegrid') # plot style
[Link]['[Link]'] = (20, 10) # plot size
importing_packages.py hosted with by GitHub view raw
# IMPORTING DATA
df = pd.read_csv('[Link]')
df.set_index('Id', inplace = True)
[Link](5)
importing_data.py hosted with by GitHub view raw
[Link](inplace = True)
print(cl([Link]().sum(), attrs = ['bold']))
[Link] hosted with by GitHub view raw
[Link]()
[Link] hosted with by GitHub view raw
print(cl([Link], attrs = ['bold']))
[Link] hosted with by GitHub view raw
df['MasVnrArea'] = pd.to_numeric(df['MasVnrArea'], errors = 'coerce')
df['MasVnrArea'] = df['MasVnrArea'].astype('int64')
print(cl([Link], attrs = ['bold']))
dtype_convert.py hosted with by GitHub view raw
[Link]([Link](), annot = True, cmap = 'magma')
[Link]('[Link]')
[Link]()
[Link] hosted with by GitHub view raw