import mnist_loader
import network
import pickle

training_data, validation_data, test_data = mnist_loader.load_data_wrapper()

net = network.Network([784, 30, 10])
net.SGD(training_data, 30, 10, 3.0, test_data=test_data)

f = open("model.pkl", "wb")
pickle.dump(net.weights, f)
pickle.dump(net.biases, f)
f.close()