lczerolens.xai.concepts#

Concepts module.

Abstract Concepts#

class lczerolens.xai.BinaryConcept#

Class for binary concept-based XAI methods.

static compute_metrics(predictions, labels)#

Compute the metrics for a given model and input.

Material Concepts#

All concepts related to material.

class lczerolens.xai.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.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.

Threat Concepts#

All concepts related to threats.

class lczerolens.xai.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.HasMateThreatConcept#

Class for material concept-based XAI methods.

compute_label(board: Board) int#

Compute the label for a given model and input.