def __init__(self, mode, data_type, log_csv_path, feature_path, debug_limit): self.db = SimpleCourseDB() self.db.build() print 'finish build course DB!' FeatureExtractor.__init__(self, mode, data_type, log_csv_path, feature_path, debug_limit)
def __init__(self, mode, data_type, log_csv_path, enrollment_path, label_path, module_path, feature_path, debug_limit): self.db = SimpleCourseDB(mode, data_type, log_csv_path, enrollment_path, label_path, module_path, feature_path, debug_limit) self.db.build() print 'finish build course DB!' log_csv_path = base_dir + '/../../data/log_train.csv' FeatureExtractor.__init__(self, mode, data_type, log_csv_path, feature_path, debug_limit)