Calculate validation error rate outside the epochs loop
Define Equals for Theano models