lczerolens.concepts.material#

All concepts related to material.

class lczerolens.concepts.material.HasMaterialAdvantage(relative: bool = True)#

Bases: BinaryConcept

Class for material concept-based XAI methods.

piece_values#

The piece values.

Type:

Dict[int, int]

compute_label(board: LczeroBoard, piece_values: Dict[int, int] | None = None) int#

Compute the label for a given model and input.

class lczerolens.concepts.material.HasPiece(piece: str, relative: bool = True)#

Bases: BinaryConcept

Class for material concept-based XAI methods.

compute_label(board: LczeroBoard) int#

Compute the label for a given model and input.