code: def loss(self, xs, ys):
          
          return float(
              self.sess.run(
                  self.cross_entropy, feed_dict={
                      self.x: xs,
                      self.y_: ys
                  }))
docs: Computes the loss of the network.