def evaluate(self, xi, xv, y):
    y = [[y_] for y_ in y]
    feed_dict = {self.feat_index: xi, self.feat_value: xv, self.label: y, self.dropout_keep_deep: ([1.0] * len(self.dropout_dep)), self.train_phase: True}
    loss = self.sess.run([self.loss], feed_dict=feed_dict)
    return loss
def evaluate(self, xi, xv, y):
    y = [[y_] for y_ in y]
    feed_dict = {self.feat_index: xi, self.feat_value: xv, self.label: y, self.dropout_keep_deep: ([1.0] * len(self.dropout_dep)), self.train_phase: True}
    loss = self.sess.run([self.loss], feed_dict=feed_dict)
    return loss