def ex_3(): data = load_data('data_mnist.json') x_train, y_train, x_test, y_test = \ data['X'], data['Y'].ravel(), data['XT'], data['YT'].ravel() plot_mnist(x_train, y_train) ex_3_a(x_train, y_train, x_test, y_test)
def ex_3(): data = load_data('data_mnist.json') # Normalize data from [0,255] to [0,1] x_train, y_train, x_test, y_test = \ data['X'] / 255, data['Y'].ravel(), data['XT'] / 255, data['YT'].ravel() plot_mnist(x_train, y_train) ex_3_a(x_train, y_train, x_test, y_test) ex_3_b(x_train, y_train, x_test, y_test)