Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _set_backend(self, backend):
backend = backend.lower()
if backend.startswith("pymc"):
self.backend = PyMC3BackEnd()
elif backend == "stan":
self.backend = StanBackEnd()
else:
raise ValueError("At the moment, only the PyMC3 and Stan backends are " "supported.")
self._backend_name = backend