def __init__(self, n_classes, width, depth, get_bow, rho=1e-5, eta=0.005, eps=1e-6, bias=0.0, update_step='adadelta'): nn_shape = tuple([width] + [width] * depth + [n_classes]) NeuralNet.__init__(self, nn_shape, embed=((width,), (0,)), rho=rho, eta=eta, eps=eps, bias=bias, update_step=update_step) self.get_bow = get_bow