How shyamkailash/-cancer-detection-in-histopathology-images works
This is a histopathology cancer-detection platform centered on a federated-training workflow: prepare and partition image data, train simulated site clients, aggregate model updates, and validate a global model. It also provides model inference and an agentic MLOps lifecycle for client selection, privacy and drift assessment, retraining decisions, evaluation, and registry management. The README documents REST API and Grad-CAM capabilities. Some API, training, and orchestration internals were not sampled, so uncertain connections are omitted.
Main entry points: orchestrator.py Lifecycle orchestrator · server.py Federated server · manifest.py Sample manifest · client.py Federated client
Components 28
Data preparation
- Dataset sources
ml/sources - Sample manifest
ml/data/manifest.py - Data validation
ml/validation - Leakage-safe splits
ml/data/split.py - Image transforms
ml/preprocessing/transforms.py - Dataset loaders
ml/datasets/dataloaders.py
Model training
- Site partitioning
ml/federated/partition.py - Training workflows
ml/training - Federated client
ml/federated/client.py - Private updates
ml/federated/privacy.py - Federated aggregation
ml/federated/aggregation.py - Federated server
ml/federated/server.py - ResNet-18
ml/models/resnet.py - Model evaluation
ml/evaluation/metrics.py
Inference and API
- Inference pipeline
ml/inference/pipeline.py - Model manager
ml/inference/model_manager.py - Grad-CAM
ml/inference/gradcam.py - REST API
backend/apps/predictions/views.py
Agentic MLOps
- Lifecycle orchestrator
agents/orchestrator.py - Client selection
agents/client_selection.py - Site coordination
mlops/distributed.py - Drift monitoring
mlops/drift_monitor.py - Retraining decisions
agents/retraining.py - Candidate evaluation
agents/evaluation.py - Model lifecycle registry
mlops/registry_lifecycle.py - Agent contracts
mlops/contracts.py - Run and event storage
mlops/storage.py
Other components
- Researcher or operator
Connections 30
- Researcher or operator → Training workflows: starts training
README.md - Dataset sources → Sample manifest: creates records
ml/sources/pcam.py - Sample manifest → Leakage-safe splits: assigns splits
ml/data/split.py - Sample manifest → Data validation: checks samples
ml/validation/duplicates.py - Sample manifest → Dataset loaders: provides samples
ml/datasets/dataloaders.py - Image transforms → Dataset loaders: transforms images
ml/datasets/dataloaders.py - Training workflows → Site partitioning: partitions sites
ml/training/federated_trainer.py - Training workflows → Federated server: runs federation
ml/training/federated_trainer.py - Site partitioning → Federated client: assigns site data
- Federated client → ResNet-18: trains locally
ml/federated/client.py - Federated client → Private updates: protects gradients
ml/federated/client.py - Federated server → Federated client: dispatches rounds
ml/federated/server.py - Federated server → Federated aggregation: aggregates updates
ml/federated/server.py - Federated server → Model evaluation: evaluates global model
ml/federated/server.py - Federated server → ResNet-18: manages global model
ml/federated/server.py - Inference pipeline → Model manager: loads model
ml/inference/pipeline.py - Inference pipeline → Grad-CAM: generates explanations
ml/inference/pipeline.py - Model manager → ResNet-18: constructs architecture
ml/inference/model_manager.py - Researcher or operator → REST API: requests predictions
- Lifecycle orchestrator → Client selection: selects clients
agents/orchestrator.py - Client selection → Site coordination: checks site health
agents/client_selection.py - Lifecycle orchestrator → Drift monitoring: assesses drift
agents/orchestrator.py - Lifecycle orchestrator → Retraining decisions: plans retraining
agents/orchestrator.py - Lifecycle orchestrator → Candidate evaluation: evaluates candidate
agents/orchestrator.py - Lifecycle orchestrator → Model lifecycle registry: registers model
agents/orchestrator.py - Lifecycle orchestrator → Run and event storage: persists events
agents/orchestrator.py - Client selection → Agent contracts: returns decisions
agents/client_selection.py - Drift monitoring → Agent contracts: returns assessment
agents/drift.py - Candidate evaluation → Model manager: uses model manager
agents/evaluation.py - Model lifecycle registry → Model manager: uses model manager
mlops/registry_lifecycle.py