Neural Network training with PyBrain won’t converge

After some more digging I found that the example on the PyBrain’s tutorial is completely out of place. When we look at the method signature in the source code we find: def trainUntilConvergence(self, dataset=None, maxEpochs=None, verbose=None, continueEpochs=10, validationProportion=0.25): This means that 25% of the training set is used for validation. Although that is a very … Read more

How to save and recover PyBrain training?

PyBrain’s Neural Networks can be saved and loaded using either python’s built in pickle/cPickle module, or by using PyBrain’s XML NetworkWriter. # Using pickle from pybrain.tools.shortcuts import buildNetwork import pickle net = buildNetwork(2,4,1) fileObject = open(‘filename’, ‘w’) pickle.dump(net, fileObject) fileObject.close() fileObject = open(‘filename’,’r’) net = pickle.load(fileObject) Note cPickle is implemented in C, and therefore should … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)