Skip to main content

Autonomous predictive analytics from CSV to trained model and runnable code.

Project description

Nexora

An autonomous predictive analytics platform that profiles datasets, builds optimized preprocessing pipelines, trains reproducible model registries, runs batch predictions, monitors feature drift, and provides grounded AI educational interactive chats from a single CSV upload.


Backend CI Frontend CI GitHub stars GitHub issues License: MIT PRs Welcome Made with FastAPI Python scikit-learn XGBoost LightGBM CatBoost SHAP React TypeScript Recharts


Why Nexora?

Data scientists and developers often spend hours writing repetitive code for data profiling, exploratory analysis, preprocessing, model benchmarking, and production endpoint deployments. Nexora bridges this gap by serving as a unified prediction engine.

By uploading a single CSV dataset, developers can instantly audit dataset health, clean features, benchmark leading machine learning models side-by-side, analyze SHAP explainability insights, download compiled PDF reports, converse with a grounded AI dataset assistant, and deploy production-ready prediction API endpoints secured by unique API keys.


Live Deployments

Component URL Host Provider
Frontend Web App nexoraprediction.netlify.app Netlify
Backend API nexora-360r.onrender.com Render
API Documentation nexora-360r.onrender.com/docs Render

Note: The backend API runs on Render's free tier and spins down after periods of inactivity. Please allow 30 to 60 seconds for the initial cold start when first accessing the application.

Note: The educational assistant (Ollama integration) requires a local Ollama instance and is only active when running the application locally. See local setup guidelines below.


System Architecture

The diagram below outlines the end-to-end data flow, processing components, and communication layers in Nexora:

graph TD
    subgraph Client Layer
        A[React Frontend]
    end

    subgraph Service API Layer
        B[FastAPI Backend Gateway]
        C[Dataset Analyzer & Validator]
        D[Preprocessing Engine]
        E[Training Manager & Registry]
        F[SHAP Explainability Engine]
        G[Grounded Chat Agent]
        H[API Key Deployment Manager]
    end

    subgraph Storage & Compute
        I[(Local Uploads / MongoDB)]
        J[Local Ollama / Phi-3 Mini]
        K[ML Models: XGBoost, CatBoost, LightGBM, Scikit-Learn]
    end

    A -->|Upload CSV & Configuration| B
    B --> C
    B --> D
    B --> E
    B --> F
    B --> G
    B --> H

    C <-->|Read / Write Datasets| I
    D <-->|Save Clean Pipelines| I
    E <-->|Real-time Socket Updates| A
    E <-->|Benchmark & Serialize| K
    F -->|Render Report| I
    G <-->|Dataset Context Queries| J
    H <-->|Authorize Keys & Serves| K

Core Features

1. Dataset Intelligence Engine

  • Automated CSV Validation - Formats columns, assesses size boundaries, and verifies tabular file integrity.
  • Health Profiling - Evaluates structural completeness, statistical anomalies, and generates per-column scorecards.
  • Preview and Distributions - Offers statistical summaries, skew metrics, and categorical balance diagnostics.

2. Dynamic Preprocessing Pipelines

  • Type Parsing - Separates numerical parameters, categorical labels, datetimes, and identifier variables.
  • Intelligent Preprocessing - Implements missing values imputation, standard scaling, target-label encoding, outlier detection, and duplicate record cleaning.
  • Interactive Configuration - Provides controls to select prediction targets and customize individual preprocessing steps.

3. Prediction Studio and Benchmarking

  • Model Registry - Supports multiple algorithms including XGBoost, CatBoost, LightGBM, and Scikit-Learn ensembles.
  • Training Pipeline - Executes cross-validation splits, train-test isolation, and hyperparameter parameter sweeps.
  • WebSocket Leaderboard - Streams active model training metrics and charts real-time scores directly to the UI.
  • Comparison Arena - Visualizes metrics, prediction drift charts, and latency histograms of trained models.

4. Interactive Data Visualization

  • Multi-Chart Dashboard - Displays numerical trends, categorical patterns, and completeness heatmaps.
  • Data Health Visualization - Compiles data quality stats, missing records rates, and unique features counts.
  • Correlation Insights - Flags linear dependencies, high associations, and outlier counts.

5. Production Suite

  • API Endpoints - Deploys production-grade prediction endpoints secured by custom API keys.
  • Batch Processing - Enables bulk uploads to retrieve fully enriched output prediction sheets.
  • Drift Detection - Compares historical prediction request signatures to highlight potential target concept drift.
  • Grounded LLM Chat - Integrates local Ollama models (Phi-3 Mini) to act as a database context tutor answering questions regarding data distribution trends.

Technical Stack

Layer Technologies
Frontend Web App React 18, Vite, TypeScript, Tailwind CSS, Framer Motion, Recharts, Axios, Lucide Icons
Backend Service API Python 3.11, FastAPI, Uvicorn, Pydantic, Pandas, NumPy, Scikit-learn, CatBoost, LightGBM, XGBoost
Data Persistence MongoDB Atlas / Local File Storage
Local LLM Integration Ollama Engine (Phi-3 Mini)
Infrastructure Platforms Netlify (Frontend), Render (Backend)

Local Development

Installation Prerequisites

Dependency Minimum Version
Python 3.11 or higher
Node.js 20 or higher
npm 10 or higher
Ollama Latest (optional, for grounded Q&A)

Development Option 1: Standard Installation

1. Clone the Project

git clone https://github.com/jeet2005/Nexora.git
cd Nexora

2. Configure Backend Service

cd backend
python -m venv .venv

# Activate Virtual Environment (Windows)
.venv\Scripts\activate

# Activate Virtual Environment (macOS / Linux)
source .venv/bin/activate

# Install dependencies and setup configuration
pip install -r requirements.txt
cp .env.example .env

# Run development server
python run.py

The backend service will be available at http://localhost:8000. You can test endpoints on Swagger UI at http://localhost:8000/docs.

3. Configure Frontend Application

cd ../frontend
npm install
cp .env.example .env.local

# Run development server
npm run dev

The React frontend application will be active at http://localhost:5173.


Development Option 2: Docker Compose Setup

Run the entire stack (FastAPI, React, and MongoDB) with a single command:

docker compose up --build
  • Frontend Web App: Access at http://localhost:3000
  • Backend API: Access at http://localhost:8000
  • MongoDB Instance: Running on port 27017

Development Option 3: Makefile Shortcuts

If you have Make installed, you can orchestrate development commands directly from the project root:

  • Install all package dependencies: make install
  • Launch backend locally: make dev-backend
  • Launch frontend locally: make dev-frontend
  • Run backend pytest suite: make test
  • Format all file types: make format
  • Spin up Docker containers: make docker-up
  • Spin down Docker containers: make docker-down

Grounded Q&A Assistant Setup (Optional)

To enable the dataset assistant using a local LLM instance:

  1. Download and install Ollama.
  2. Pull the default micro-LLM model in your terminal:
    ollama pull phi3:mini
    
  3. Keep Ollama active in the background. The assistant will detect local hosting at http://localhost:11434 and enable custom educational conversations.

Repository Roadmap

  • Add Pytest code coverage reports in the Backend CI pipeline.
  • Implement multi-file comparison dashboards within the Frontend page.
  • Add support for automated time-series forecasting hyperparameter tuning.
  • Integrate PostgreSQL database schema mappings for enterprise persistence layers.
  • Add REST API key rotation options inside the Production UI.
  • Create automated end-to-end integration tests using Playwright.

Contributing and Governance

Contributions are welcome. Please read our Contributing Guidelines to understand branch conventions, pull request structures, and developer standards. Ensure all contributions align with our Code of Conduct.

For vulnerability notifications, refer to our Security Policy.


License

Nexora is open-source software licensed under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nexora_prediction-0.1.0.tar.gz (66.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nexora_prediction-0.1.0-py3-none-any.whl (73.3 kB view details)

Uploaded Python 3

File details

Details for the file nexora_prediction-0.1.0.tar.gz.

File metadata

  • Download URL: nexora_prediction-0.1.0.tar.gz
  • Upload date:
  • Size: 66.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0

File hashes

Hashes for nexora_prediction-0.1.0.tar.gz
Algorithm Hash digest
SHA256 659aa437e45ecb9b2732406f5fe23138b9b7d36c241253709320b203d9e98dfe
MD5 6217b6ee3e85932cf4b9bd588a86db17
BLAKE2b-256 bb8d06063391e2301f7e147f5d5a18d004093aa3a236b32da9744a9d6d3a69d0

See more details on using hashes here.

File details

Details for the file nexora_prediction-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for nexora_prediction-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b64008050ef3cecfe572640a6f3f5eebdb1724f0598c3d14654e9303e9bf1e35
MD5 793d1e466ccb87beeaa789ad5861daa7
BLAKE2b-256 b7b25cf87bea30aec0391f8d2c66df77217f7211c777f14789422a1870ce277f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page