This application predicts next-month vehicle stock demand using machine learning and provides insights into buyer demographics.
- Go to the official Python website: https://www.python.org/downloads/windows/.
- Download the latest Python installer for Windows.
- Run the installer and check the box that says "Add Python to PATH".
- Click on Install Now and follow the setup wizard.
- After installation, verify it by opening a command prompt and typing:
python --versionThe .pkl file stores the trained machine learning model for predictions.
- Ensure that the
cleaned_car_data.csvfile exists in thecsv/folder. - Run the following command:
python mml.pyIf successful, the model will be saved as vehicle_stock_forecast_model.pkl in your project folder.
Use the cleaning script to preprocess raw data.
python clean_car_data.pyThe cleaned data will be saved in the csv/ folder as cleaned_car_data.csv.
- Install dependencies:
python install.py- Launch the application:
python app.py- Open your browser and visit:
http://127.0.0.1:5000
-
Issue: "No file selected" when uploading data
Solution: Ensure you have selected a.csvfile. -
Issue:
KeyError: 'Date'inmml.py
Solution: Verify your dataset contains theYearandMonthcolumns. -
Issue:
Module not founderror
Solution: Run:
python install.py- Forecast Sales: Predicts units of each car model expected to sell next month.
- Buyer Insights: Provides demographic insights, including gender and income analysis.
- CSV Download: Allows users to export the forecast report.