def mainCA(x_name, y_name, divided_by='', feature_names=[]):
    X = loadNpy(['data', 'X', x_name])
    Y = loadNpy(['data', 'Y', y_name])
    print('Dataset', x_name, y_name)
    print('Method: ', 'CA')
    print('Divided by', divided_by)
    if feature_names:
        xdf = pd.DataFrame(data=X, columns=feature_names)
    else:
        xdf = pd.DataFrame(data=X)
    (x_list, feature_names) = dvdX(xdf, divided_by=divided_by)
    if (divided_by == 'power'):
        (x_list, feature_names) = (x_list[0:4], feature_names[0:4])
    print('bootstrapping ...')
    (coef_boot, comb_feature) = bootstrappingCA(x_list, Y)
    result_df = caResultDf(coef_boot, comb_feature)
    printBootResultCA(result_df)
def mainCA(x_name, y_name, divided_by=, feature_names=[]):
    X = loadNpy(['data', 'X', x_name])
    Y = loadNpy(['data', 'Y', y_name])
    print('Dataset', x_name, y_name)
    print('Method: ', 'CA')
    print('Divided by', divided_by)
    if feature_names:
        xdf = pd.DataFrame(data=X, columns=feature_names)
    else:
        xdf = pd.DataFrame(data=X)
    (x_list, feature_names) = dvdX(xdf, divided_by=divided_by)
    if (divided_by == 'power'):
        (x_list, feature_names) = (x_list[0:4], feature_names[0:4])
    print('bootstrapping ...')
    (coef_boot, comb_feature) = bootstrappingCA(x_list, Y)
    result_df = caResultDf(coef_boot, comb_feature)
    printBootResultCA(result_df)