def _get_model_perms(self, *args):
        if not hasattr(self, '_model_perms_cache'):
            if self.model is None:
                self._model_perms_cache = set()
            else:
                self._model_perms_cache = get_model_perms(self.model)
        return self._model_perms_cache
Rasmussen's numerically stable mode finding
dataset/ETHPy150Open lambdalisue/django-permission/src/permission/handlers.py/PermissionHandler._get_model_perms--crossover with--dataset/ETHPy150Open SheffieldML/GPy/GPy/inference/latent_function_inference/laplace.py/Laplace.rasm_mode