def update(self, **kwargs):
        for field, value in kwargs.items():
            setattr(self, field, value)
        self.save(update_fields=list(kwargs.keys()))
Protected train method to make wrapping of modes easier
dataset/ETHPy150Open schematics/schematics/examples/django/linkify/links/models.py/Link.update--crossover with--dataset/ETHPy150Open maxpumperla/elephas/elephas/spark_model.py/SparkModel._train