Skip to content

Simple Linear Regression class with predict, plot and export functions.

License

Notifications You must be signed in to change notification settings

ngeorgj/LinearRegression

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

LinearRegression

Simple linear regression class with extra functions.

Linear Regression Example

Usage:

  1. 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])

  2. Check your DataFrame.
    print(data.df)

  3. Predict data using .predict(x).
    data.predict(6)
    output: 60

  4. Plot your data using .plot()

  5. Export your data to .csv using .export(file_name)

About

Simple Linear Regression class with predict, plot and export functions.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages