from active_learning_ts.logging.data_blackboard import Blackboard
from active_learning_ts.training.training_strategy import TrainingStrategy


class DirectTrainingStrategy(TrainingStrategy):

    def train(self, blackboard: Blackboard, surrogate_blackboard : Blackboard):
        if not len(blackboard.last_instance.actual_queries) == 0:
            self.surrogate_model.learn(blackboard.last_instance.actual_queries, blackboard.last_instance.query_results)
