Setup Libraries
Learn.
In this section we will learn how to setup generic libraries (e.g. Math, Plot etc.)
# Import core libraries code for numerical computing, data analysis, visualization, and suppress warnings
import numpy as npimport pandas as pdimport matplotlib.pyplot as pltimport seaborn as snsimport warningswarnings.filterwarnings(‘ignore’)
Next, we’ll setup machine learning model libraries (e.g. Linear regression, Classification etc.)
# import model libraries include
from sklearn.model_selection import train_test_splitfrom sklearn.linear_model import LinearRegressionfrom sklearn.metrics import mean_squared_error, r2_score, mean_absolute_error
note. you can either copy the code from the leaning section or write and execute it in the python notebook on the right.
Tip: Use straight quotes (e.g., “Hello”) instead of curly quotes (e.g., “Hello”). When you copy and paste code, quotes may change automatically and lead to errors.