| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- from abc import ABC, abstractmethod
- class TrainerInterface(ABC):
- @abstractmethod
- def start(self):
- pass
- @abstractmethod
- def start_new(self):
- pass
- @abstractmethod
- def pause(self):
- pass
- @abstractmethod
- def resume(self):
- pass
- @abstractmethod
- def stop(self):
- pass
- @abstractmethod
- def set_training_data(self, features, labels):
- pass
- @abstractmethod
- def set_model_path(self, model_path):
- pass
- @abstractmethod
- def set_epochs(self, epochs):
- pass
- @abstractmethod
- def set_batch_size(self, batch_size):
- pass
- @abstractmethod
- def set_dropout_rate(self, rate):
- pass
- @abstractmethod
- def set_training_directories(self, directories):
- pass
- @abstractmethod
- def set_sample_directory(self, directory):
- pass
- @abstractmethod
- def set_background_directory(self, directory):
- pass
- @abstractmethod
- def get_training_data(self):
- pass
- @abstractmethod
- def get_model_path(self):
- pass
- @abstractmethod
- def get_epochs(self):
- pass
- @abstractmethod
- def get_batch_size(self):
- pass
- @abstractmethod
- def get_dropout_rate(self):
- pass
- @abstractmethod
- def get_training_directories(self):
- pass
- @abstractmethod
- def get_sample_directory(self):
- pass
- @abstractmethod
- def get_background_directory(self):
- pass
- @abstractmethod
- def preprocess_training_data(self, update_progress_callback):
- pass
- @abstractmethod
- def get_training_info(self):
- pass
|