Ejemplo n.º 1
0
def ex_1():
    data = load_data('data.json')
    x, y = data['X'], data['Y'].ravel()

    plot_data_points(x, y)
    ex_1_a(x, y)
    ex_1_b(x, y)
    ex_1_c(x, y)
Ejemplo n.º 2
0
def ex_2():
    data = load_data('data_nl.json')
    x_train, y_train, x_test, y_test = \
        data['X'], data['Y'].ravel(), data['XT'], data['YT'].ravel()

    plot_data_points(x_train, y_train, x_test, y_test)

    ex_2_a(x_train, y_train, x_test, y_test)