@staticmethod
    def get_num_batch(num_examples, batch_size):
        """
        Returns the number of batches for a given number of examples and given batch size.
        """
        return int(np.ceil(num_examples/float(batch_size)))
dataset/ETHPy150Open bbabenko/simple_convnet/simple_convnet/convnet.py/NNet.get_num_batch/original