Spaces:
Running
Running
| # src/tools/interfaces.py | |
| from abc import ABC, abstractmethod | |
| from typing import List, Dict, Any, Optional | |
| from domain.training.charts import ChartSpec | |
| import matplotlib.figure | |
| class IFeatureStore(ABC): | |
| def put_features(self, run_id: str, features: Dict[str, Any]): | |
| pass | |
| def get_features(self, run_id: str) -> Optional[Dict[str, Any]]: | |
| pass | |
| def put_weekly_summary(self, week_key: str, summary: Dict[str, Any]): | |
| pass | |
| def get_weekly_summary(self, week_key: str) -> Optional[Dict[str, Any]]: | |
| pass | |
| def get_all_features(self) -> List[Dict[str, Any]]: | |
| pass | |
| def clear(self): | |
| pass | |
| class IPlanStore(ABC): | |
| def save_plan(self, plan_id: str, plan_obj: str): | |
| pass | |
| def get_plan(self, plan_id: str) -> Optional[str]: | |
| pass | |
| def get_latest_plan(self) -> Optional[str]: | |
| pass | |
| def clear(self): | |
| pass | |
| class IVisualizationExecutor(ABC): | |
| def render_chart( | |
| self, chart_spec: ChartSpec, features: List[Dict[str, Any]] | |
| ) -> matplotlib.figure.Figure: | |
| pass | |