@classmethod
    def get(cls, filter=None, **kwargs):
        document = cls(cls.find_one(filter, **kwargs))
        return document if document.document and document.is_valid else None
Fits the model on data generated batch-by-batch by
dataset/ETHPy150Open lvieirajr/mongorest/mongorest/collection.py/Collection.get--crossover with--dataset/ETHPy150Open fchollet/keras/keras/models.py/Sequential.fit_generator