akkudoktoreos.core.coreabc.PredictionMixin
- class akkudoktoreos.core.coreabc.PredictionMixin
Bases:
objectMixin class for managing EOS prediction data.
This class serves as a foundational component for EOS-related classes requiring access to global prediction data. It provides a prediction property that dynamically retrieves the prediction instance, ensuring up-to-date access to prediction results.
- Usage:
Subclass this base class to gain access to the prediction attribute, which retrieves the global prediction instance lazily to avoid import-time circular dependencies.
- prediction
Property to access the global EOS prediction data.
- Type:
Example
```python class MyOptimizationClass(PredictionMixin):
- def analyze_myprediction(self):
prediction_data = self.prediction.mypredictionresult # Perform analysis
- __init__()
Methods
__init__()Attributes
Convenience method/ attribute to retrieve the EOS prediction data.
- property prediction: Any
Convenience method/ attribute to retrieve the EOS prediction data.
- Returns:
The prediction.
- Return type: