def __init__(self): # State here the possible stages and their handlers self.STAGE_OF_HANDLER = {"preprocess": self.handle_preprocess, "reduce_dataset": self.handle_reduce_dataset, "train_classifier": self.handle_train_classifier, "classify": self.handle_classify, "evaluate_testset": self.handle_evaluate_testset} self.parse_commandline_arguments() Logger.set_log_path(self.command_args.log_path) self.call_stage_method()