This is an ARIMA (Auto Regressive Integrated Moving Average) model integrated with a web-app to predict the changes in number of air-passengers. for eg: with 11 years of data from 2011 to 2022, the model will be able to predict till 2024 with an user friendly graph plot.
Forecasting is a common data science practice which helps organisations to set their goals/plans. This model essentially helps airlines or aviation businesses in anomaly detection and/or setting goals according to the trend.
finvidcomp.mp4
The video displaying the web app with the model
This is where you can select years for prediction, change the historical data with your `.csv` file for prediction and view the raw data The main graph where you can view the plotted value of the prediction. Black dots are the actual number of passengers during the particular time frame and blue line is the predicted value of passengers some more components to help users understant the trend better- Python
- Streamlit
- FBProphet
- Pandas
The model is still in beta and training but it can still be accessed locally A full fletched web app with multiple models and graphs will be made public soon! To test the model locally :
- download this github repo
- install all the dependencies from
requirements.txt
- run
model.py
- run
streamlit run model.py
in terminal
NOTE: The .csv
should have two columns, 1 with the name Month
( which has all the dates ) and 2 with the name #Passengers
( which has all the number of passengers )
You can directly change the .csv
from here
- download the file from github
- change
AirPassengers.csv
with your.csv
containing the historical data (the data should be in two columns with date and closing value) - In the
df
variable changeAirPassengers.csv
with your path of the data - In
df_train = df[['Month','#Passengers']]
anddf_train = df_train.rename(columns={'Month':'ds','#Passengers':'y'})
swap "month" and "#passengers" with your two columns names - run
model.py
- input
streamlit run model.py
in the terminal to start the localhost
- Deploy a full fletched web app with a friendly UI
- Integrate more ML models for prediction in different time frames
- integrate comparision analysis
- add more editable parameters