This project is focused on developing a demand forecasting application using Machine Learning, specifically the ARIMA (AutoRegressive Integrated Moving Average) model. The app is built with Streamlit, enabling an interactive web interface, and uses Pandas for efficient data handling. Additionally, the application is integrated with a Flask-based webhook to receive and process streaming data.
We use AWS Bedrock as base LLM Foundational Model for this project for data analytical purpose. You can add agent functionality and knowledge base - RAG for this model by using Langchain or use AWS Bedrock Console
for further inquiry check our website at: business.matter.co.id
- Demand Forecasting Using ARIMA: Leverages the ARIMA model for accurate demand forecasting.
- Streamlit for Interactive UI: Utilizes Streamlit for building an intuitive and interactive web interface.
- Data Handling with Pandas: Employs Pandas DataFrame for efficient data manipulation and analysis.
- Webhook Integration with Flask: Includes a Flask webhook for real-time data streaming and processing.
- Mongo DB Integration: Use no-SQL database to handle unstructured data streaming.
- Python 3.9 or higher
- Pip package manager
- Pipenv
- MongoDB run Locally/Server
- AWS CLI for Bedrock Integration
-
Clone the repository
git clone https://github.com/mbahmujono/Pertamina
-
Navigate to the project directory
cd Pertamina
-
Install dependencies and activate the environment
pip install pipenv pipenv install pipenv shell
-
Update .env
WEBHOOK_URL = http://localhost:5000/webhook # your localhost URL for webhook MONGO_URI = mongodb://localhost:27017/ # your mongodb connection MONGO_DB = test # your mongo db MONGO_COLLECTION = test # your mongo collection
-
Start the Streamlit app
streamlit run streamlit/app.py
-
Launch the Flask server (for webhook)
python datastream/datastream.py python webhook/app.py
- Navigate to the Streamlit app URL provided in the terminal.
- Upload your dataset or use the real-time data streaming feature through the Flask webhook.
- Configure the ARIMA model parameters as needed.
- View the forecast results and analyses on the Streamlit interface.
Contributions to enhance the functionality or efficiency of this demand forecasting app are welcome. Please follow these steps to contribute:
- Fork the repository.
- Create a new branch (
git checkout -b your-branch
). - Commit your changes (
git commit -am 'Add some feature'
). - Push to the branch (
git push origin feature-branch
). - Create a new Pull Request.
This project is licensed under the MIT License.
For any queries or suggestions, please reach out to Diaz at diaz@matter.co.id .