'Retrieves the weights of the model.
# Returns
A flat list of Numpy arrays.'

def get_weights(self):

    weights = []
    for layer in self.layers:
        weights += layer.weights
    return K.batch_get_value(weights)
