This project is a Desktop GUI Application built using Tkinter, designed to demonstrate how Machine Learning models can be integrated into user-friendly interfaces. Users can input stock-related data and receive immediate predictions for the day's highest and lowest prices of selected banks.
While the data is based on stock prices, this project mainly showcases the power of Python GUI development using Tkinter.
- π Interactive GUI: Built entirely in Tkinter for seamless user interaction.
- π§ Backend ML Model: A simple Linear Regression model trained on historical bank stock prices.
- π§Ύ Database Integration: Uses MySQL to store each prediction made via the app.
- π€ User Inputs: Select bank name, enter date, previous close, and opening value.
- π Live Results: Instantly see the predicted high and low values for the given input.
Component | Technology |
---|---|
GUI Framework | Tkinter |
ML Model | Linear Regression (Scikit-learn) |
Data Handling | Pandas, NumPy |
Database | MySQL |
IDE Used | Spyder |
- Bank Name (Dropdown)
- Year, Month, Day
- Previous Close Price
- Opening Price
- Displays predicted High and Low values
- Automatically saves inputs and results into MySQL
- Startup: Launches a Tkinter window with labeled input fields.
- Data Entry: User selects/enters stock-related values.
- Prediction: On clicking "Check High/Low", the model processes the input.
- Result Display: Predicted High/Low prices are shown below the button.
- Database Logging: The result and input data are saved into a MySQL table.
b1 = Button(root, text="Check High/Low", bg="slateGray2", width=20, font=("bold",10), command=get_data)
b1.grid()