From 124de3dd8d46a0622bd10c3b4ab033a00dbd3c27 Mon Sep 17 00:00:00 2001 From: stefanch <41121473+stefanch@users.noreply.github.com> Date: Mon, 24 Oct 2022 16:16:02 +0200 Subject: [PATCH] bugfix --- sgdml/__init__.py | 2 +- sgdml/predict.py | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/sgdml/__init__.py b/sgdml/__init__.py index 4c2e3d1..9eb651f 100644 --- a/sgdml/__init__.py +++ b/sgdml/__init__.py @@ -22,7 +22,7 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. -__version__ = '0.5.3' +__version__ = '0.5.4' MAX_PRINT_WIDTH = 100 LOG_LEVELNAME_WIDTH = 7 # do not modify diff --git a/sgdml/predict.py b/sgdml/predict.py index 4768226..ebf4220 100644 --- a/sgdml/predict.py +++ b/sgdml/predict.py @@ -1278,11 +1278,10 @@ def predict(self, R=None, return_E=True): _predict_wo_wkr_starts_stops, self.wkr_starts_stops ) ) - - if R is not None: # Not in train mode. TODO: better set y_std to zero - E_F *= self.std - F = E_F[:, 1:] - E = E_F[:, 0] + self.c + + E_F *= self.std + F = E_F[:, 1:] + E = E_F[:, 0] + self.c ret = (F,) if return_E: