peal.teachers.spray_teacher.SprayConfig¶
- class peal.teachers.spray_teacher.SprayConfig[source]¶
Bases:
BaseModelConfig for the
Sprayteacher.- Parameters:
base_dir (
str) – Directory the analysis (HDF5 databases, ViReLay project, labels) is written to.data (
DataConfig) – Dataset the classifier is analysed on;dataset_path/data.csvis re-written with aSprayLabelcolumn.dataset_name (
str, optional) – Key intoCLASS_NAMES; defaults todata.dataset_class.model (
str) – Path of thetorch.load-able classifier.port (
int, optional) – Port of the ViReLay GUI. Default 8080.use_relative_concept_importance (
bool, optional) – Cluster CRP channel importances instead of raw attributions.sum_attribution_channels (
bool, optional) – Preprocessing steps applied before spectral clustering.normalize_attribtions (
bool, optional) – Preprocessing steps applied before spectral clustering.attribution_layer (
int, optional) – Index of the layer whose relevances are clustered; 0 means the input heatmaps. Default -2.classes_total (
int) – Number of classes to analyse.num_clusters_max (
int, optional) – k-means and agglomerative clusterings are run for k in2..max.num_eigval (
int, optional) – Eigenvectors kept by the spectral embedding. Default 32.tsne_perplexity (
float/intorlist) – One t-SNE and UMAP embedding is stored per value.umap_neighbors (
float/intorlist) – One t-SNE and UMAP embedding is stored per value.task (
TaskConfig) – Task of the classifier, passed toget_datasets.skip_wrongly_classified_samples (
bool, optional) – Drop misclassified samples from the attribution database.max_samples (
int, optional) – Random subset size of the train split. Default 10000.split_dataset (
bool, optional) – Analyse train/val(/test) separately instead of concatenated.conditioning_layer (optional) – Restrict CRP attribution to given channels of a layer.
conditioning_channels (optional) – Restrict CRP attribution to given channels of a layer.
include_testsplit (
bool, optional) – Also include the test split in the analysis.
Methods
Attributes
- data: DataConfig¶
- task: TaskConfig¶