From 261e73ca8be95926766164034bfecc86a89ec20a Mon Sep 17 00:00:00 2001 From: "david.seb.fischer" Date: Wed, 21 Aug 2019 17:15:06 +0200 Subject: [PATCH] made access to error codes and niter of estimator nicer --- batchglm/models/base/estimator.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/batchglm/models/base/estimator.py b/batchglm/models/base/estimator.py index a726c051..88e84db1 100644 --- a/batchglm/models/base/estimator.py +++ b/batchglm/models/base/estimator.py @@ -41,6 +41,14 @@ def __init__( self._error_codes = None self._niter = None + @property + def error_codes(self): + return self._error_codes + + @property + def niter(self): + return self._niter + @property def loss(self): return self._loss