Linear Models for Regression — Applied Machine Learning in Python

PHOTO EMBED

Sat Oct 28 2023 07:03:31 GMT+0000 (Coordinated Universal Time)

Saved by @elham469

# It's a good idea to get an idea of the distribution of the target variable.
# Here we're using matplotlib's histogram function.
# Remember to set bins to auto, otherwise it's using 10 bins
# the histogram is somewhat skewed to the left, though not extremely
# and has a maximum around somewhere around 90
import matplotlib.pyplot as plt
y.hist(bins='auto')
content_copyCOPY

https://amueller.github.io/aml/02-supervised-learning/05-linear-models-regression.html