How shruthiii5666/modelsml works
ApexMart combines an electronics storefront and session-aware recommendations with an admin monitoring view. The user path runs from browsing and cart events through the backend to recommendations ranked with purchase intent and brand trust; a separate behavioral-analysis pipeline produces trust scores. The graph also preserves the purchase-intent model and behavioral feature/scoring stages. Several backend and model connections are inferred only from imports or documented API behavior; those edges are dashed where the excerpts do not show the runtime call.
Main entry points: pipeline.py Analysis Pipeline · config.py Analysis Settings · api.js Frontend API Client · StorePage.jsx Store Browser
Components 24
Storefront
- App Router
frontend/src/App.jsx - Store Browser
frontend/src/pages/StorePage.jsx - Product Cards
frontend/src/components/ProductCard.jsx - Recommendation Shelf
frontend/src/components/RecommendationShelf.jsx - Session and Cart
frontend/src/context/AppContext.jsx - Admin Dashboard
frontend/src/pages/DashboardPage.jsx - Frontend API Client
frontend/src/services/api.js
Application Backend
- HTTP API
backend/main.py - Catalog and Sessions
backend/service.py
Recommendation Engine
- Purchase Intent Model
user-intent/train_purchase_model.py - Candidate Generation
recommendation/candidate_generator.py - Intent-Trust Integration
recommendation/trust_integrator.py - Recommendation Ranking
recommendation/ranking.py - Recommendation Settings
recommendation/config.py
Behavioral Trust Analysis
- Analysis Entry Point
behavioral-analysis/main.py - Analysis Pipeline
behavioral-analysis/src/pipeline.py - Clickstream Loader
behavioral-analysis/src/data_loader.py - Behavioral Features
behavioral-analysis/src/category_relative_features.py - Model Preparation
behavioral-analysis/src/model_preparation.py - Anomaly Detection
behavioral-analysis/src/anomaly_model.py - Brand Risk Scoring
behavioral-analysis/src/scoring.py - Brand Trust Scores
behavioral-analysis/src/trust_score.py - Analysis Settings
behavioral-analysis/src/config.py
Other components
- Shopper
Connections 30
- Shopper → App Router: uses
frontend/src/App.jsx - App Router → Store Browser: routes to
frontend/src/App.jsx - App Router → Admin Dashboard: routes to
frontend/src/App.jsx - Store Browser → Frontend API Client: loads catalog
frontend/src/pages/StorePage.jsx - Store Browser → Product Cards: renders
frontend/src/pages/StorePage.jsx - Store Browser → Recommendation Shelf: renders
frontend/src/pages/StorePage.jsx - Recommendation Shelf → Frontend API Client: loads recommendations
frontend/src/components/RecommendationShelf.jsx - Session and Cart → Frontend API Client: logs events
frontend/src/context/AppContext.jsx - Admin Dashboard → Frontend API Client: loads telemetry
frontend/src/pages/DashboardPage.jsx - Frontend API Client → HTTP API: requests endpoints
frontend/src/services/api.js - HTTP API → Catalog and Sessions: delegates
backend/main.py - Catalog and Sessions → Candidate Generation: generates candidates
- Catalog and Sessions → Intent-Trust Integration: integrates trust
backend/service.py - Catalog and Sessions → Recommendation Ranking: ranks results
backend/service.py - Intent-Trust Integration → Purchase Intent Model: loads probabilities
- Intent-Trust Integration → Brand Trust Scores: loads trust scores
- Analysis Entry Point → Analysis Pipeline: runs
behavioral-analysis/main.py - Analysis Pipeline → Clickstream Loader: loads events
behavioral-analysis/src/pipeline.py - Analysis Pipeline → Behavioral Features: builds features
behavioral-analysis/src/pipeline.py - Analysis Pipeline → Model Preparation: prepares model data
behavioral-analysis/src/pipeline.py - Analysis Pipeline → Anomaly Detection: trains and scores
behavioral-analysis/src/pipeline.py - Analysis Pipeline → Brand Risk Scoring: aggregates risk
behavioral-analysis/src/pipeline.py - Analysis Pipeline → Brand Trust Scores: calculates trust
behavioral-analysis/src/pipeline.py - Analysis Pipeline → Analysis Settings: reads settings
behavioral-analysis/src/pipeline.py - Clickstream Loader → Analysis Settings: reads settings
behavioral-analysis/src/data_loader.py - Behavioral Features → Analysis Settings: reads settings
behavioral-analysis/src/category_relative_features.py - Model Preparation → Analysis Settings: reads settings
behavioral-analysis/src/model_preparation.py - Anomaly Detection → Analysis Settings: reads settings
behavioral-analysis/src/anomaly_model.py - Brand Risk Scoring → Analysis Settings: reads settings
behavioral-analysis/src/scoring.py - Brand Trust Scores → Analysis Settings: reads settings
behavioral-analysis/src/trust_score.py