def wrapper_checker(database, column_name, bot_qu, top_qu): _CheckInput._check_database_input(database) _CheckInput._check_column_name(column_name) _CheckInput._check_column_in_database(column_name, database) _CheckInput._check_boundaries(top_qu) _CheckInput._check_boundaries(bot_qu) return func(database, column_name, bot_qu, top_qu)
def wrapper_checker(database, filter_dict_up=None, filter_dict_down=None): _CheckInput._check_database_input(database) _CheckInput._check_dict(filter_dict_up) _CheckInput._check_dict(filter_dict_down) return func(database, filter_dict_up, filter_dict_down)
def wrapper_checker(train, test, column_name): _CheckInput._check_database_input(train) _CheckInput._check_database_input(test) _CheckInput._check_column_name(column_name) _CheckInput._check_column_in_database(column_name, train) _CheckInput._check_column_in_database(column_name, test) return func(train, test, column_name)
def wrapper_checker(database, columns_to_check=None, num_categories=5): _CheckInput._check_database_input(database) _CheckInput._check_list_tuple_None( columns_to_check ) # todo: replace to a new check - list/tuple/None _CheckInput._check_num_categories(num_categories) return func(database, columns_to_check, num_categories)
def wrapper_checker(database, column_name, category_name="other", threshold=0.01): _CheckInput._check_database_input(database) _CheckInput._check_column_name(column_name) _CheckInput._check_column_name(category_name) _CheckInput._check_column_in_database(column_name, database) _CheckInput._check_threshold(threshold) return func(database, column_name, category_name, threshold)
def wrapper_checker(database, locations_column, feature, title=None, color_bar_title=None): _CheckInput._check_database_input(database) _CheckInput._check_column_in_database(locations_column, database) _CheckInput._check_column_in_database(feature, database) _CheckInput._check_column_name(title) _CheckInput._check_column_name(color_bar_title) func(database, locations_column, feature, title, color_bar_title)
def wrapper_checker(database, column_list=None): _CheckInput._check_database_input(database) _CheckInput._check_list_tuple_None(column_list) for column in column_list: _CheckInput._check_column_in_database(column, database) func(database, column_list)
def wrapper_checker(database): _CheckInput._check_database_input(database) func(database)
def wrapper_checker(database, column_name): _CheckInput._check_database_input(database) _CheckInput._check_column_name(column_name) _CheckInput._check_type_date_time(database, column_name) _CheckInput._check_column_in_database(column_name, database) return func(database, column_name)
def wrapper_checker(database, column_name, test_size=0.3): _CheckInput._check_database_input(database) _CheckInput._check_column_in_database(column_name, database) _CheckInput._check_threshold(test_size) return func(database, column_name, test_size=0.3)
def wrapper_checker(database, column_name): _CheckInput._check_database_input(database) _CheckInput._check_column_name(column_name) _CheckInput._check_column_in_database(column_name, database) func(database, column_name)
def wrapper_checker(database, column_name, categories_to_drop): _CheckInput._check_database_input(database) _CheckInput._check_column_name(column_name) _CheckInput._check_column_in_database(column_name, database) _CheckInput._check_list_tuple_None(categories_to_drop) func(database, column_name, categories_to_drop)
def wrapper_checker(database, features_list=None): _CheckInput._check_database_input(database) if features_list: for column in features_list: _CheckInput._check_column_in_database(column, database) return func(database, features_list)
def wrapper_checker(database, features_to_encode): _CheckInput._check_database_input(database) for column in features_to_encode: _CheckInput._check_column_in_database(column, database) return func(database, features_to_encode)