lir.aggregation.base module
- class lir.aggregation.base.Aggregation[source]
Bases:
ABCBase representation of an aggregated data collection.
Other classes may extend from this class.
- close() None[source]
Finalize the aggregation; no more results will come in.
The close method is called at the end of gathering the aggregation(s) to ensure files are closed, buffers are cleared, or other things that need to finish / tear down.
- abstractmethod report(data: AggregationData) None[source]
Report that new results are available.
- Parameters:
data (AggregationData) – The aggregated data to be reported.
- class lir.aggregation.base.AggregationData(llrdata: LLRData, lrsystem: LRSystem, parameters: dict[str, HyperparameterOption | str], run_name: str, get_full_fit_lrsystem: Callable[[], LRSystem] | None = None)[source]
Bases:
NamedTupleRepresentation of aggregated data.
- get_full_fit_lrsystem
Optional callable that lazily provides a model fitted on full data (ignoring splits).
- Type:
Callable[[], LRSystem] | None
- parameters: dict[str, HyperparameterOption | str]
Alias for field number 2