コード例 #1
0
def online_shopping(verbose=False, show_plots=False):
    X_train, X_test, y_train, y_test = data_proc.process_online_shopping()

    run_experiment('online_shopping',
                   X_train,
                   X_test,
                   y_train,
                   y_test,
                   verbose=verbose,
                   show_plots=show_plots)
コード例 #2
0
def online_shopping(kernels, verbose=False, show_plots=False):
    X_train, X_test, y_train, y_test = data_proc.process_online_shopping()
    scalable_cols = [
        'Administrative', 'Administrative_Duration', 'Informational',
        'Informational_Duration', 'ProductRelated', 'ProductRelated_Duration',
        'BounceRates', 'ExitRates', 'PageValues', 'SpecialDay'
    ]

    for col in scalable_cols:
        X_train[col] = data_proc.scale_data(X_train[col])
        X_test[col] = data_proc.scale_data(X_test[col])

    for kernel in kernels:
        run_experiment(kernel,
                       'online_shopping',
                       X_train,
                       X_test,
                       y_train,
                       y_test,
                       verbose=verbose,
                       show_plots=show_plots)
コード例 #3
0
def online_shopping(verbose=False):
    X, y = data_proc.process_online_shopping(scaler='minmax')
    run_k_means('shopping', X, y, verbose=verbose)
    run_expect_max('shopping', X, y, verbose=verbose)
コード例 #4
0
def online_shopping(verbose=False):
    X, y = data_proc.process_online_shopping(scaler='minmax', tt_split=False)
    run_pca('shopping', X, y, verbose=verbose)
    run_ica('shopping', X, y, verbose=verbose)
    run_rp('shopping', X, y, verbose=verbose)
    run_dt_fi('shopping', X, y, verbose=verbose)