Simple linear regression class with extra functions.
Linear Regression Example
Usage:
-
Create an Instance of the class Linear Regression and supply with two arrays of floats/ints.
data = LinearRegression([1,2,3,4,5],[10,20,30,40,50]) -
Check your DataFrame.
print(data.df) -
Predict data using .predict(x).
data.predict(6)
output: 60 -
Plot your data using .plot()
-
Export your data to .csv using .export(file_name)