Dataset Viewer

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