source/modelling/dashboard/app.py

source-code dashboard streamlit analytics

File Path: src/modelling/dashboard/app.py

Purpose: Entry point for the Streamlit Analytics Dashboard. Manage layout, state, and view navigation.

Overview

Initializes the Streamlit application, handles sidebar inputs (checkpoints, splits), manages session state for caching inference results, and renders different tabs based on user selection.

Functions

main()

function entry-point

Purpose: Main execution function for the dashboard.

Logic:

  1. Sidebar:
    • Loads cached checkpoints via load_cached_checkpoints.
    • Selects Data Split using SplitType.
    • Button “Run Evaluation” triggers inference.
  2. State Management:
    • Initializes results, inspector_rnd_key, etc.
  3. Routing:
    • if results exist: Shows Global Metrics, Error Analysis.
    • Always shows: Sample Inspector, Augmentation Lab.
  4. Rendering:

Calls:


File Location: src/modelling/dashboard/app.py