def validation_result(self, X, y, instances):
    validation_rslt = get_loss(self.net, self.A, X, y, instances)
    return (validation_rslt[0], validation_rslt[1])
def validation_result(self, X, y, instances):
    validation_rslt = get_loss(self.net, self.A, X, y, instances)
    return (validation_rslt[0], validation_rslt[1])