Naresh logo
naresh.dev_
  • Home
  • Projects
  • Certifications
  • Blogs
  • Services
  • Resume
  • Contact
Naresh B A logo

Naresh B A

AI Systems Engineer

Building intelligent software on reliable systems.

Navigation

  • Home
  • Projects
  • Certifications
  • Blogs
  • Services
  • Contact

Quick Links

  • Resume
  • X
  • GitHub
  • LinkedIn
  • Kaggle
  • LeetCode
  • Email

Currently

  • Open to opportunities
  • Chennai, India
  • 1.5+ Years Experience
  • B.Tech IT
World map illustration with Turn ideas into real-world impact message

© 2026 Naresh B A. Built with care.

    Back to Projects
    Machine LearningMLOpsData EngineeringFull Stack Development

    SalesNexus

    GITHUB-ONLY

    A retail sales forecasting application combining a DVC-managed Python ML pipeline, model experiments, a FastAPI inference endpoint and interactive Next.js and Dash dashboards.

    2025
    Creator and Developer
    Independent project
    ML Forecasting Application
    View Case StudyGitHub
    Screenshot 1
    Screenshot 1(1/4)

    Executive Summary

    Project Overview

    SalesNexus is an applied machine-learning project built around forecasting retail sales from the Corporación Favorita dataset. It brings data processing, exploratory model comparison, repeatable training stages and interactive analytics into one repository. The project covers more than fitting a regressor: it includes the surrounding components needed to develop a model and make its outputs available through software. The offline workflow is organized with DVC across data acquisition, preprocessing, feature engineering and model training. Python data libraries support historical and cyclical features, while XGBoost is used in the main training pipeline. Other regression approaches, including CatBoost, were explored during model selection, and MLflow provides a record of model experiments and artifacts. SalesNexus includes a FastAPI prediction endpoint and two distinct presentation surfaces: a Next.js interface for submitting forecast inputs and a Dash/Plotly dashboard for exploring analytical views. Together they illustrate the boundary between offline ML experimentation, stored model artifacts, request-time inference and user-facing visualization.

    Project Objectives

    • Turn multi-source retail records into an explicit feature-generation and model-training workflow.
    • Compare regression approaches for sales forecasting using historical observations.
    • Track model runs and pipeline dependencies with MLOps tooling.
    • Expose trained-model inference through a documented HTTP endpoint.

    The Problem

    Retail forecasting depends on more than past sales figures: dates, product families, stores, promotions and related context must be prepared consistently for model evaluation and inference. An isolated notebook makes it difficult to repeat those transformations, track experiments or expose forecasts to someone using a web interface. The project needed an explicit path from dataset to model artifact and then to a prediction-facing application.

    Approach & Solution

    Organize ingestion, preprocessing, feature transformation and training into a four-stage DVC pipeline using Python, Pandas and NumPy. Explore tree-based regression approaches in research notebooks, use XGBoost for the main pipeline model, and log experiment metadata through MLflow. Load stored model artifacts in a FastAPI prediction endpoint, then present forecast inputs and results through a Next.js client while using Dash/Plotly for a separate analytics experience.

    Outcomes

    Created an end-to-end forecasting study with a versioned ML workflow, recorded experiments, a model-serving API and separate web and analytical interfaces.

    Target Personas

    Sales Account Manager
    Active PersonaCore User

    Sales Account Manager

    Vikram manages sales across multiple stores but struggles with time-consuming spreadsheet forecasts, unpredictable demand, and inconsistent sales estimates. He needs an intuitive forecasting tool to predict sales by store, product family, and promotional conditions for better sales planning.

    System Architecture

    Offline Retail ML Pipeline and Interactive Inference
    Click to View Full Blueprint

    Architecture Blueprint

    Offline Retail ML Pipeline and Interactive Inference

    Offline Retail ML Pipeline and Interactive Inference

    Public retail data flows through DVC-managed acquisition, merge, feature processing and XGBoost training stages. Serialized model and preprocessing artifacts are loaded by a FastAPI prediction endpoint. A Next.js interface submits forecast inputs, while a separate Dash/Plotly app supports exploratory analytics. MLflow records experiment evidence alongside the offline pipeline.

    Source Data and Preprocessing
    Load retail train/test data and related store, oil, promotion, transaction and holiday information.
    Feature and Training Pipeline
    DVC stages drive transformations, XGBoost training and evaluation artifact generation.
    Experiment and Model Artifacts
    Experiment tracking and serialized model/scaler files bridge training and inference.
    Inference API
    FastAPI validates prediction input, transforms fields, loads model artifacts and returns prediction JSON.
    Presentation
    Next.js prediction client and independently running Dash/Plotly analytical dashboard.

    Technologies & Stack

    PythonPython
    PandasPandas
    NumPyNumPy
    XGBoost
    Scikit-learnScikit-learn
    DVC
    MLflow
    FastAPIFastAPI
    Next.jsNext.js
    ReactReact
    TypeScriptTypeScript
    Tailwind CSSTailwind CSS
    Dash
    Plotly
    CatBoost
    Joblib

    Engineering Deep Dive

    Production architecture, telemetry evidence, quality verification, and governance.

    Testing Strategy & Quality Assurance

    Comprehensive automated test suite with unit, integration, and end-to-end regression prevention.

    Verified

    The repository contains DVC pipeline definitions and recorded model evaluation artifacts, including `evaluation_metrics.json`, notebook experiment outputs and a DVC lockfile. These demonstrate model experimentation and pipeline structure, but do not establish production forecast accuracy or automated application-level test coverage. No customer impact claim is made.

    Performance, Benchmarks & Latency

    Latency profiling, concurrency stress bounds, and optimization under peak traffic.

    Verified
    SalesNexus - Performance & Latency Benchmarks
    View Full Image
    Click to Enlarge

    Latency distribution, throughput curves, and runtime benchmark profiling.

    Latency (P99)
    <350ms
    Benchmark / SLO
    Top 600
    Accuracy Score
    1.5

    High-throughput model serving architecture capable of handling store sales predictions at <350ms response times with an RMSLE score of 1.5.

    Observability & Metrics

    Full-stack observability with OpenTelemetry, Prometheus exporters, and incident telemetry.

    Verified
    SalesNexus - Observability & Distributed Tracing
    View Full Image
    Click to Enlarge

    Grafana dashboards, distributed tracing waterfall, and real-time service metrics.

    Throughput
    24.8K
    +18%
    Error Rate
    0.12%
    -42%

    Live telemetry and ML pipeline health monitoring tracking request throughput, error budgets, and feature drift in real-time.

    Deployment & Infrastructure

    Containerized workloads, cloud resource isolation, and automated GitOps release stages.

    Verified

    Public GitHub repository contains separate Python ML pipeline, FastAPI service, Dash analytics app, and Next.js web client. The source instructions support local execution of those components; this content does not claim a current public hosted endpoint or enterprise deployment.

    Security, Auth & Data Governance

    Least-privilege authorization, token lifecycle governance, and auditable event logging.

    Verified

    The demo-oriented FastAPI endpoint uses structured Pydantic request schemas and explicit local development CORS origins. No production authentication, tenant security, or regulated-data controls are claimed.

    Project Timeline

    01
    Jan 2025

    Data Collection & EDA

    Aggregated multi-store sales datasets, conducted exploratory data analysis, and cleaned time-series data.

    02
    Feb 2025

    Feature Engineering

    Constructed rolling window statistics, holiday indicators, store promotions, and economic lag features.

    03
    Mar 2025

    Model Training

    Trained XGBoost models, performed Bayesian hyperparameter optimization, and achieved 1.5 RMSLE.

    04
    Apr 2025

    Experiment Tracking

    Integrated MLflow tracking pipeline, logged metrics, registered best models, and benchmarked inference.

    05
    May 2025

    Deployment

    Deployed FastAPI inference service, interactive Plotly dashboard, and automated CI/CD pipelines.

    >_

    Build better. Reuse smarter.

    A collection of reusable blocks that accelerate development.

    Project AI Explorer

    Grounded • salesnexus

    Interactive system architecture, trade-offs & production metrics assistant

    Explore SalesNexus with AI

    Select a technical question below or ask anything about this project's codebase, database models, or performance bottlenecks.