The dataset viewer is not available because its heuristics could not detect any supported data files. You can try uploading some data files, or configuring the data files location manually.
trump-signal# π TrumpPulse β MLOps Semester Project
π₯ Group Members
- Chenghao Luo
- Suchanya Baiyam
- Rogerio Braunschweiger de Freitas Lima
π Project Overview
TrumpPulse is an MLOps-focused system designed to ingest, process, and analyze textual data from Trump Truth Social Dataset.
The primary goal is not model performance, but the design and implementation of a robust, reproducible, and deployable MLOps pipeline.
The system performs:
- π§ Sentiment Classification (positive / negative / neutral)
- β Question Answering (QA) over Trumpβs posts
This project aligns with Aalborg Universityβs MLOps requirements by emphasizing:
- End-to-end pipeline
- Deployment readiness
- Reproducibility
- Continuous or on-demand execution
π― Aim of the Project
The objective is to build a production-ready MLOps pipeline that includes:
- π₯ Data ingestion (initial + reusable)
- π§Ή Preprocessing
- 𧬠Feature representation (embeddings)
- π€ Model inference (sentiment + QA)
- π API-based deployment
- π³ Containerization (Docker)
- π Continuous or trigger-based execution
ποΈ System Architecture
ββββββββββββββββββββββ
β Hugging Face Dataset β
βββββββββββ¬βββββββββββ
β
ββββββββββββββββββββββ
β Data Ingestion β
βββββββββββ¬βββββββββββ
β
ββββββββββββββββββββββ
β Preprocessing β
βββββββββββ¬βββββββββββ
β
ββββββββββββββββββββββ
β Model Layer β
β - Sentiment β
β - QA (Embeddings) β
βββββββββββ¬βββββββββββ
β
ββββββββββββββββββββββ
β FastAPI Service β
βββββββββββ¬βββββββββββ
β
ββββββββββββββββββββββ
β Docker Container β
ββββββββββββββββββββββ
βοΈ Pipeline Components
π₯ Data Ingestion
- Data is loaded from Hugging Face
- Stored locally for reproducibility
π§Ή Preprocessing
- Text cleaning
- Null filtering
- Basic normalization
π€ Model Layer
Sentiment Analysis
Pretrained transformer model
Outputs:
- Label (POSITIVE / NEGATIVE)
- Confidence score
Question Answering (QA)
- Sentence embeddings using
SentenceTransformers - Semantic similarity search
- Returns most relevant Trump posts
π API Deployment
The system is deployed using: π FastAPI
Available Endpoints
| Endpoint | Description |
|---|---|
/ |
Health check |
/predict_sentiment |
Classify sentiment |
/ask_question |
Retrieve relevant answers |
π³ Containerization
The entire system is containerized using Docker:
- Ensures reproducibility
- Enables easy deployment
- Supports continuous operation
π Execution Strategy
The system supports:
- β API-based interaction (on-demand)
- β Continuous execution via server runtime
- π Future: scheduled jobs (cron / GitHub Actions)
π¦ Artifact Management
The project stores:
- π Raw data
- π Processed data
- π Model outputs (predictions)
This supports:
- Reproducibility
- Debugging
- Evaluation
π Evaluation & Monitoring (Basic)
- Logging of predictions
- API health monitoring
- Model output inspection
Future improvements may include:
- Model versioning
- Drift detection
- Performance tracking
π§ͺ How to Run the Project
βΆοΈ Local Run
pip install -r requirements.txt
uvicorn app.main:app --reload
Access: π http://localhost:8000/docs
π³ Docker Run
docker build -t trump-pulse .
docker run -p 8000:8000 trump-pulse
π Future Work
- π Market reaction modeling
- π Time-series analysis
- π§ Advanced NLP models
- π Frontend dashboard (Streamlit)
- π Automated data pipelines
β Key Takeaways
- Focus on MLOps, not model perfection
- Demonstrates end-to-end pipeline
- Fully containerized and deployable
- Supports real-time interaction via API
π Repository
π (https://github.com/Rogersurf/trump-signal)
π‘ Final Note
This project is designed to demonstrate a working, scalable, and reproducible MLOps system, aligned with academic requirements and real-world deployment practices.
- Downloads last month
- 69