lczerolens.concept#
Class for concept-based XAI methods.
- class lczerolens.concept.AndBinaryConcept(*concepts: BinaryConcept)#
Bases:
BinaryConceptClass for binary concept-based XAI methods.
- compute_label(board: LczeroBoard) Any#
Compute the label for a given model and input.
- class lczerolens.concept.BinaryConcept#
Bases:
ConceptClass for binary concept-based XAI methods.
- static compute_metrics(predictions, labels)#
Compute the metrics for a given model and input.
- class lczerolens.concept.Concept#
Bases:
ABCClass for concept-based XAI methods.
- abstract compute_label(board: LczeroBoard) Any#
Compute the label for a given model and input.
- abstract static compute_metrics(predictions, labels)#
Compute the metrics for a given model and input.
- abstract property features: Features#
Return the features for the concept.
- class lczerolens.concept.ContinuousConcept#
Bases:
ConceptClass for continuous concept-based XAI methods.
- static compute_metrics(predictions, labels)#
Compute the metrics for a given model and input.
- class lczerolens.concept.MulticlassConcept#
Bases:
ConceptClass for multiclass concept-based XAI methods.
- static compute_metrics(predictions, labels)#
Compute the metrics for a given model and input.
- class lczerolens.concept.NullConcept#
Bases:
BinaryConceptClass for binary concept-based XAI methods.
- compute_label(board: LczeroBoard) Any#
Compute the label for a given model and input.
- class lczerolens.concept.OrBinaryConcept(*concepts: BinaryConcept)#
Bases:
BinaryConceptClass for binary concept-based XAI methods.
- compute_label(board: LczeroBoard) Any#
Compute the label for a given model and input.