This project uses a Dataset of Expenses for advertising and sales. In this i have created a webpage to upload the dataset where we are fetching it and after preprocessing, the clean data is uploaded(POST) to the API created by the company. Then i fetched the uploaded data to perform Linear regression on Sales and TV (expense for advertising). The reason to select TV is because it is more correlated to the sales. A scatter plot is shown to show the difference between the Actual Sales Vs Pedicted Sales using my regression model. Finally a webpage to showcase the plot and table of Actual vs Predicted.
Note: This is only for the advertising csv used in this project as the API creation and prediction process is done according to the specific dataset
Open the folder in an code editor for better experience
https://github.com/MKisKrazy/internship-project-B2E-
pip install -r requirements.txt
cd myproject
python manage.py runserver
http://127.0.0.1:8000/
Go to this url after starting the server.
Click the To upload the advertsing expenses dataset button to nagivate to next page
Choose the 'advertising.csv' file (which i have provided in the repository) and click upload buutton to upload.
It will take sometime to upload and you will navigated to next page and you will see response code: 200 and the preview of the dataset which indicated successful upload to API
It will take some time to do the prediction process and you will be nagivated to new page where u will see the model's evaluation metrics,preprocessing analysis,correlation plots and final prediction plot
Click on View prediction to see a comparison on Actual Vs Predicted values of the sales data
http://127.0.0.1:8000/start_prediction
http://127.0.0.1:8000/predicted_data
Dataset in provided in the repository