コード例 #1
0
ファイル: profile_table.py プロジェクト: ragrangzi/studio
def profile_table(table, group_by=None, **params):
    check_required_parameters(_profile_table, params, ['table'])
    if group_by is not None:
        return _function_by_group(_profile_table,
                                  table,
                                  group_by=group_by,
                                  **params)
    else:
        return _profile_table(table, **params)
コード例 #2
0
ファイル: anova.py プロジェクト: shovsj/studio
def tukeys_range_test(table, group_by=None, **params):
    check_required_parameters(_tukeys_range_test, params, ['table'])
    if group_by is not None:
        return _function_by_group(_tukeys_range_test,
                                  table,
                                  group_by=group_by,
                                  **params)
    else:
        return _tukeys_range_test(table, **params)
コード例 #3
0
def svm_classification_train(table, group_by=None, **params):
    check_required_parameters(_svm_classification_train, params, ['table'])
    if group_by is not None:
        return _function_by_group(_svm_classification_train,
                                  table,
                                  group_by=group_by,
                                  **params)
    else:
        return _svm_classification_train(table, **params)
コード例 #4
0
ファイル: xgb_classification.py プロジェクト: rheehot/studio
def xgb_classification_predict(table, model, **params):
    check_required_parameters(_xgb_classification_predict, params,
                              ['table', 'model'])

    if '_grouped_data' in model:
        return _function_by_group(_xgb_classification_predict, table, model,
                                  **params)
    else:
        return _xgb_classification_predict(table, model, **params)
コード例 #5
0
ファイル: summary.py プロジェクト: shovsj/studio
def statistic_derivation(table, group_by=None, **params):
    check_required_parameters(_statistic_derivation, params, ['table'])
    if group_by is not None:
        return _function_by_group(_statistic_derivation,
                                  table,
                                  group_by=group_by,
                                  **params)
    else:
        return _statistic_derivation(table, **params)
コード例 #6
0
def ftest_for_stacked_data(table, group_by=None, **params):
    check_required_parameters(_ftest_for_stacked_data, params, ['table'])
    if group_by is not None:
        return _function_by_group(_ftest_for_stacked_data,
                                  table,
                                  group_by=group_by,
                                  **params)
    else:
        return _ftest_for_stacked_data(table, **params)
コード例 #7
0
def unit_root_test(table, group_by=None, **params):
    check_required_parameters(_unit_root_test, params, ['table'])
    if group_by is not None:
        return _function_by_group(_unit_root_test,
                                  table,
                                  group_by=group_by,
                                  **params)
    else:
        return _unit_root_test(table, **params)
コード例 #8
0
ファイル: association_rule.py プロジェクト: ragrangzi/studio
def association_rule(table, group_by=None, **params):
    check_required_parameters(_association_rule, params, ['table'])
    if group_by is not None:
        return _function_by_group(_association_rule,
                                  table,
                                  group_by=group_by,
                                  **params)
    else:
        return _association_rule(table, **params)
コード例 #9
0
ファイル: __init__.py プロジェクト: latermonk/studio
def replace_missing_string(table, group_by=None, **params):
    check_required_parameters(_replace_missing_string, params, ['table'])
    params = get_default_from_parameters_if_required(params, _replace_missing_string)
    param_validation_check = [greater_than_or_equal_to(params, 1, 'limit')]
    validate(*param_validation_check)
    if group_by is not None:
        return _function_by_group(_replace_missing_string, table, group_by=group_by, **params)
    else:
        return _replace_missing_string(table, **params)
コード例 #10
0
ファイル: moving_average.py プロジェクト: ymorzart/studio
def moving_average(table, group_by=None, **params):
    check_required_parameters(_moving_average, params, ['table'])
    params = get_default_from_parameters_if_required(params,_moving_average)
    param_validation_check = [greater_than_or_equal_to(params, 1, 'window_size')]
    validate(*param_validation_check)
    if group_by is not None:
        return _function_by_group(_moving_average, table, group_by=group_by, **params)
    else:
        return _moving_average(table, **params)
コード例 #11
0
ファイル: mann_whitney_test.py プロジェクト: yemode2k/studio
def mann_whitney_test(table, group_by=None, **params):
    check_required_parameters(_mann_whitney_test, params, ['table'])
    
    params = get_default_from_parameters_if_required(params, _mann_whitney_test)
    
    if group_by is not None:
        return _function_by_group(_mann_whitney_test, table, group_by=group_by, **params)
    else:
        return _mann_whitney_test(table, **params)
コード例 #12
0
def paired_ttest(table, group_by=None, **params):
    check_required_parameters(_paired_ttest, params, ['table'])
    params = get_default_from_parameters_if_required(params, _paired_ttest)
    param_validation_check = [from_to(params, 0, 1, 'confidence_level')]
    validate(*param_validation_check)
    if group_by is not None:
        return _function_by_group(_paired_ttest, table, group_by=group_by, **params)
    else:
        return _paired_ttest(table, **params)
コード例 #13
0
def hierarchical_clustering(table, group_by=None, **params):
    check_required_parameters(_hierarchical_clustering, params, ['table'])
    if group_by is not None:
        return _function_by_group(_hierarchical_clustering,
                                  table,
                                  group_by=group_by,
                                  **params)
    else:
        return _hierarchical_clustering(table, **params)
コード例 #14
0
def gaussian_mixture_train(table, group_by=None, **params):
    check_required_parameters(_gaussian_mixture_train, params, ['table'])
    if group_by is not None:
        return _function_by_group(_gaussian_mixture_train,
                                  table,
                                  group_by=group_by,
                                  **params)
    else:
        return _gaussian_mixture_train(table, **params)
コード例 #15
0
def kruskal_wallis_test(table, group_by=None, **params):
    check_required_parameters(_kruskal_wallis_test, params, ['table'])
    
    params = get_default_from_parameters_if_required(params, _kruskal_wallis_test)
    
    if group_by is not None:
        return _function_by_group(_kruskal_wallis_test, table, group_by=group_by, **params)
    else:
        return _kruskal_wallis_test(table, **params)
コード例 #16
0
def evaluate_regression(table, group_by=None, **params):
    check_required_parameters(_evaluate_regression, params, ['table'])
    if group_by is not None:
        return _function_by_group(_evaluate_regression,
                                  table,
                                  group_by=group_by,
                                  **params)
    else:
        return _evaluate_regression(table, **params)
コード例 #17
0
def sparse_naive_bayes_train(table, group_by=None, **params):
    check_required_parameters(_sparse_naive_bayes_train, params, ['table'])
    if group_by is not None:
        return _function_by_group(_sparse_naive_bayes_train,
                                  table,
                                  group_by=group_by,
                                  **params)
    else:
        return _sparse_naive_bayes_train(table, **params)
コード例 #18
0
def one_sample_ttest(table, group_by=None, **params):
    check_required_parameters(_one_sample_ttest, params, ['table'])
    if group_by is not None:
        return _function_by_group(_one_sample_ttest,
                                  table,
                                  group_by=group_by,
                                  **params)
    else:
        return _one_sample_ttest(table, **params)
コード例 #19
0
ファイル: word2vec.py プロジェクト: yemode2k/studio
def word2vec_similarity2(table, model, **params):
    check_required_parameters(_word2vec_similarity2, params,
                              ['table', 'model'])

    params = get_default_from_parameters_if_required(params,
                                                     _word2vec_similarity2)
    param_validation_check = [greater_than_or_equal_to(params, 1, 'topn')]
    validate(*param_validation_check)
    return _word2vec_similarity2(table, model, **params)
コード例 #20
0
ファイル: summary.py プロジェクト: rheehot/studio
def string_summary(table, group_by=None, **params):
    check_required_parameters(_string_summary, params, ['table'])
    if group_by is not None:
        return _function_by_group(_string_summary,
                                  table,
                                  group_by=group_by,
                                  **params)
    else:
        return _string_summary(table, **params)
コード例 #21
0
def transpose(table, group_by=None, **params):
    check_required_parameters(_transpose, params, ['table'])
    if group_by is not None:
        return _function_by_group(_transpose,
                                  table,
                                  group_by=group_by,
                                  **params)
    else:
        return _transpose(table, **params)
コード例 #22
0
def outlier_detection_lof(table, group_by=None, **params):
    check_required_parameters(_outlier_detection_lof, params, ['table'])
    if group_by is not None:
        return _function_by_group(_outlier_detection_lof,
                                  table,
                                  group_by=group_by,
                                  **params)
    else:
        return _outlier_detection_lof(table, **params)
コード例 #23
0
def distinct(table, group_by=None, **params):
    check_required_parameters(_distinct, params, ['table'])
    if group_by is not None:
        return _function_by_group(_distinct,
                                  table,
                                  group_by=group_by,
                                  **params)
    else:
        return _distinct(table, **params)
コード例 #24
0
def split_data(table, group_by=None, **params):
    check_required_parameters(_split_data, params, ['table'])
    if group_by is not None:
        return _function_by_group(_split_data,
                                  table,
                                  group_by=group_by,
                                  **params)
    else:
        return _split_data(table, **params)
コード例 #25
0
def correlation(table, group_by=None, **params):
    check_required_parameters(_correlation, params, ['table'])
    if group_by is not None:
        return _function_by_group(_correlation,
                                  table,
                                  group_by=group_by,
                                  **params)
    else:
        return _correlation(table, **params)
コード例 #26
0
ファイル: __init__.py プロジェクト: shovsj/studio
def replace_missing_number(table, group_by=None, **params):
    check_required_parameters(_replace_missing_number, params, ['table'])
    if group_by is not None:
        return _function_by_group(_replace_missing_number,
                                  table,
                                  group_by=group_by,
                                  **params)
    else:
        return _replace_missing_number(table, **params)
コード例 #27
0
ファイル: anova.py プロジェクト: shovsj/studio
def oneway_anova(table, group_by=None, **params):
    check_required_parameters(_oneway_anova, params, ['table'])
    if group_by is not None:
        return _function_by_group(_oneway_anova,
                                  table,
                                  group_by=group_by,
                                  **params)
    else:
        return _oneway_anova(table, **params)
コード例 #28
0
def linear_regression_train(table, group_by=None, **params):
    check_required_parameters(_linear_regression_train, params, ['table'])
    if group_by is not None:
        return _function_by_group(_linear_regression_train,
                                  table,
                                  group_by=group_by,
                                  **params)
    else:
        return _linear_regression_train(table, **params)
コード例 #29
0
def svc_predict(table, model, group_by=None, **params):
    check_required_parameters(_svc_predict, params, ['table', 'model'])
    if group_by is not None:
        return _function_by_group(_svc_predict,
                                  table,
                                  model,
                                  group_by=group_by,
                                  **params)
    else:
        return _svc_predict(table, model, **params)
コード例 #30
0
def doc_summarizer_eng(table, **params):
    check_required_parameters(_doc_summarizer_eng, params, ['table'])
    params = get_default_from_parameters_if_required(params,
                                                     _doc_summarizer_eng)
    param_validation_check = [
        greater_than(params, 0, 'ratio'),
        greater_than_or_equal_to(params, 1, 'num_sentence')
    ]
    validate(*param_validation_check)
    return _doc_summarizer_eng(table, **params)