peal.adaptors.interfaces.Adaptor

class peal.adaptors.interfaces.Adaptor[source]

Bases: ABC

Abstract base class of all adaptors.

Concrete adaptors (CFKD, DiDAE, ClArC, GroupDRO, …) subclass this and implement run, which performs the whole adaptation procedure (explaining the student, collecting feedback, fine-tuning) and writes its artifacts to the adaptor’s base directory.

Methods

run

Run the adaptor.

abstract run()[source]

Run the adaptor.

Raises:

NotImplementedError – Always; subclasses must override this method.