regression.py
It’s the core file, that read a csv file.
And we are doing simple linear regression on data read from the csv file.
api.py
This file can be called from any other application to get real and predicted value for a comparison.
We already developed a sample web application, that use Vue.js to display a graph of
real vs predicted value
Module files can be found in the link
https://github.com/abdunnasir/data-science-open/tree/master/simple_linear_regression
Predict profit using simple linear regression (Python)