def test_on_batch(self, x, y, sample_weight=None):
        x, y, sample_weights = self._standardize_user_data(x, y,
                                                           sample_weight=sample_weight,
                                                           check_batch_dim=True)
        if self.uses_learning_phase:
            ins = x + y + sample_weights + [0.]
        else:
            ins = x + y + sample_weights
        self._make_test_function()
        outputs = self.test_function(ins)
        if len(outputs) == 1:
            return outputs[0]
        return outputs
Test the model on a single batch of samples.
dataset/ETHPy150Open fchollet/keras/keras/engine/training.py/Model.test_on_batch