quaterion.train.cache_mixin module¶
- class CacheMixin[source]¶
Bases:
object
- classmethod check_encoders_persisted(dir_path: Optional[str], encoders: Dict[str, Encoder])[source]¶
- classmethod load_cache(dir_path: str, encoders: Dict[str, Encoder], train_dataloader: SimilarityDataLoader, val_dataloader: Optional[SimilarityDataLoader])[source]¶
- classmethod save_cache(dir_path: Optional[str], encoders: Dict[str, Encoder], train_dataloader: SimilarityDataLoader, val_dataloader: Optional[SimilarityDataLoader])[source]¶