def __init__(self, feature_extractors, cleanup_functions, rollback=False, rollback_when=None, commit_data=False): self.feature_extractors = feature_extractors self.cleanup_functions = cleanup_functions self.rollback = rollback self.rollback_when = rollback_when self.commit_map = repository.get_commit_map() if commit_data else None
def __init__( self, feature_extractors, cleanup_functions, rollback=False, rollback_when=None, commit_data=False, ): self.feature_extractors = feature_extractors self.cleanup_functions = cleanup_functions self.rollback = rollback self.rollback_when = rollback_when self.commit_map = repository.get_commit_map() if commit_data else None assert self.commit_map is None or len(self.commit_map) > 0
def __init__( self, feature_extractors, cleanup_functions, rollback=False, rollback_when=None, commit_data=False, merge_data=True, ): self.feature_extractors = feature_extractors self.cleanup_functions = cleanup_functions self.rollback = rollback self.rollback_when = rollback_when self.commit_map = repository.get_commit_map() if commit_data else None self.merge_data = merge_data assert self.commit_map is None or len(self.commit_map) > 0