5. Mathematics for Machine Learning: Fitting a Straight Line - AvinandanBose/Machine-Learning GitHub Wiki

Fitting a Straight Line

Plotting it in python:

Output

Plotted in a curve

Step 2

Plotting it through python

Output 1 With no common difference

Graph

Output 2 n is even With common difference in x

Graph

Output 3 n is odd With common difference in x

Graph