← Về thư mục
skills/scientific-brainstorming/scripts/evaluate_matrix.py
- Criterion · class · L32-L47 — class Criterion
- normalize · method · L42-L47 — def normalize(self, value: float) -> float
- Rating · class · L51-L56 — class Rating
- IdeaRow · class · L60-L65 — class IdeaRow
- load_criteria · function · L68-L119 — def load_criteria(raw_path: str) -> list[Criterion]
- _parse_bounded_score · function · L122-L135 — def _parse_bounded_score( raw: str | None, *, label: str, criterion: Criterion, ) -> float
- load_scores · function · L138-L255 — def load_scores(raw_path: str, criteria: Sequence[Criterion]) -> list[IdeaRow]
- _normalized_weights · function · L258-L272 — def _normalized_weights( criteria: Sequence[Criterion], *, override: Mapping[str, float] | None = None, ) -> dict[str, float]
- _score · function · L275-L283 — def _score( row: IdeaRow, criteria: Sequence[Criterion], weights: Mapping[str, float], ) -> float
- _ranks · function · L286-L290 — def _ranks(scores: Mapping[str, float]) -> dict[str, int]
- calculate_matrix · function · L293-L458 — def calculate_matrix( criteria: Sequence[Criterion], rows: Sequence[IdeaRow], *, weight_delta: float, ) -> dict[str, Any]
- build_parser · function · L461-L495 — def build_parser() -> argparse.ArgumentParser
- main · function · L498-L514 — def main(argv: Sequence[str] | None = None) -> int