Skip to content

Commit 124de3d

Browse files
committed
bugfix
1 parent 29eeea6 commit 124de3d

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

sgdml/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2323
# SOFTWARE.
2424

25-
__version__ = '0.5.3'
25+
__version__ = '0.5.4'
2626

2727
MAX_PRINT_WIDTH = 100
2828
LOG_LEVELNAME_WIDTH = 7 # do not modify

sgdml/predict.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1278,11 +1278,10 @@ def predict(self, R=None, return_E=True):
12781278
_predict_wo_wkr_starts_stops, self.wkr_starts_stops
12791279
)
12801280
)
1281-
1282-
if R is not None: # Not in train mode. TODO: better set y_std to zero
1283-
E_F *= self.std
1284-
F = E_F[:, 1:]
1285-
E = E_F[:, 0] + self.c
1281+
1282+
E_F *= self.std
1283+
F = E_F[:, 1:]
1284+
E = E_F[:, 0] + self.c
12861285

12871286
ret = (F,)
12881287
if return_E:

0 commit comments

Comments
 (0)