peal.adaptors.projection_adaptor.ProjectionAdaptorConfig¶
- class peal.adaptors.projection_adaptor.ProjectionAdaptorConfig[source]¶
Bases:
AdaptorConfigConfig of
ProjectionAdaptor.- Parameters:
adaptor_type (
str) – Fixed to"ProjectionAdaptor"; used byget_adaptorfor dispatch.category (
str) – Fixed to"adaptor".base_model_config (
PredictorConfigordictorstr) – Predictor config (or yaml path) of the classifier to repair; itsmodel_pathmust containmodel.cpl.base_dir (
str) – Output directory; created on construction.data (
DataConfigordictorNone) –test_data(if given) replaces the predictor’s data config so the evaluation runs on a different dataset;datais currently unused.test_data (
DataConfigordictorNone) –test_data(if given) replaces the predictor’s data config so the evaluation runs on a different dataset;datais currently unused.sparse_dictionary (
SparseDictionaryConfigordictorNone) – Config passed toget_sparse_dictionary; itsget_components()provides the candidate directions.projected_component_index_list (
listofint) – Indices of the dictionary components whose span is projected out.partition (
int) – Which dataloader to evaluate on: 0 train, 1 validation, 2 test.
Methods
Attributes
The type of adaptor that shall be used.
The category of the config.
- adaptor_type: str = 'ProjectionAdaptor'¶
The type of adaptor that shall be used. This is necessary to know which pydantic class to use when loading from yaml.
- category: str = 'adaptor'¶
The category of the config. Can not be changed for adaptor. This is also necessary to identify which pydantic class to use when loading from yaml.
- base_model_config: PredictorConfig | dict | str¶
- data: DataConfig | dict | None¶
- test_data: DataConfig | dict | None¶
- sparse_dictionary: SparseDictionaryConfig | dict | None = None¶