Skip to content

distill::sweep_analyzer::SweepAnalyzer

More...

Public Functions

Name
init(self self, Optional project_root[Path] =None)
Path save(self self, str niche, Dict analysis[str, Any])
Optional[Dict[str, Any]] load(self self, str niche)

Protected Attributes

Name
_project_root
_sweep_dir

Detailed Description

class distill::sweep_analyzer::SweepAnalyzer;
Persist and load structured temperature sweep analysis results.

Args:
    project_root: Root of the gnus-poc project. The ``artifacts/sweeps``
        directory is created beneath this path.

Public Functions Documentation

function init

__init__(
    self self,
    Optional project_root[Path] =None
)

function save

Path save(
    self self,
    str niche,
    Dict analysis[str, Any]
)
Write a sweep analysis to ``artifacts/sweeps/<niche>_sweep.json``.

Args:
    niche: Specialist niche name (e.g. ``"medical"``).
    analysis: Dictionary with keys ``niche``, ``sweep_date``,
        ``best_temperature``, ``best_loss``, ``temperatures``,
        and ``convergence``.

Returns:
    Path to the written file.

function load

Optional[Dict[str, Any]] load(
    self self,
    str niche
)
Load a previously saved sweep analysis for *niche*.

Args:
    niche: Specialist niche name.

Returns:
    The analysis dictionary, or ``None`` if no sweep file exists.

Protected Attributes Documentation

variable _project_root

_project_root;

variable _sweep_dir

_sweep_dir;

Updated on 2026-10-09 at 03:59:43 +0000