lczerolens.xai.concepts#
Concepts module.
- class lczerolens.xai.concepts.BestLegalMoveConcept(wrapper: ModelWrapper)#
Class for move concept-based XAI methods.
- compute_label(board: Board) int#
Compute the label for a given model and input.
- class lczerolens.xai.concepts.HasMateThreatConcept#
Class for material concept-based XAI methods.
- compute_label(board: Board) int#
Compute the label for a given model and input.
- class lczerolens.xai.concepts.HasMaterialAdvantageConcept(relative: bool = True)#
Class for material concept-based XAI methods.
- piece_values#
The piece values.
- Type:
Dict[int, int]
- compute_label(board: Board, piece_values: Dict[int, int] | None = None) int#
Compute the label for a given model and input.
- class lczerolens.xai.concepts.HasPieceConcept(piece: str, relative: bool = True)#
Class for material concept-based XAI methods.
- compute_label(board: Board) int#
Compute the label for a given model and input.
- class lczerolens.xai.concepts.HasThreatConcept(piece: str, relative: bool = True)#
Class for material concept-based XAI methods.
- compute_label(board: Board) int#
Compute the label for a given model and input.
- class lczerolens.xai.concepts.PieceBestLegalMoveConcept(wrapper: ModelWrapper, piece: str)#
Class for move concept-based XAI methods.
- compute_label(board: Board) int#
Compute the label for a given model and input.
Abstract Concepts#
Material Concepts#
All concepts related to material.
Threat Concepts#
All concepts related to threats.