In [7]: # create loss function
...: prediction = lasagne.layers.get_output(network)
...: loss = lasagne.objectives.categorical_crossentropy(prediction, target_var)
...: loss = loss.mean() + 1e-4 * lasagne.regularization.regularize_network_params(
...: network, lasagne.regularization.l2)
...:
...:
AttributeError: ('The following error happened while compiling the node', DotModulo(A, s, m, A2, s2, m2), '\n', "module 'numpy.core.multiarray' has no attribute '_get_ndarray_c_version'")