KhadijehValipour / MachineLearning7

assignment44

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Linear Regression Using Least Squares LLS

abalone

image

In the csv file of the abalone, we are looking to predict its height by receiving the length of the abalone

plot

Display the Pairs plot (pairwise plot) in seaborn

Alt text

Display the confusion matrix diagram with matplotlib

Alt text

Display the slope of a line with matplotlib

Alt text


Students Performance (Regression)

Generate continuous random dataset for the problem of X = study hours and Y = grade of students (if you study more, you will get a higher grade)

Alt text


Draw some wrong red lines with a random slope

Alt text

Draw the correct blue line using your Object Oriented Linear Least Squares (LLS) method

Alt text

Draw a green line using linregress from scipy library. Compare your result with scipy's result.

Alt text


Boston house-prices (Regression)

Alt text

Display the confusion matrix diagram with matplotlib

Alt text


Display the Pairs plot (pairwise plot) in seaborn

Alt text


Exploratory Data Analysis

Exploratory Data Analysis is a very important step before training the model. In this section, we will use some visualizations to understand the relationship of the target variable with other features.

Let’s first plot the distribution of the target variable price. We will use the distplot function from the seaborn library.

Alt text


This dataset has 13 features for each house. According to data correlation and your analysis, choose 2 features for X, for example:

X = area and age

and choose 1 target for Y:

Y = price

Alt text

About

assignment44


Languages

Language:Jupyter Notebook 100.0%Language:Python 0.0%