Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## [Version 1.0.2] - Bugfix Release - 2022-07

* Fixed binary classification prediction output format to fit v11 stricter format

## [Version 1.0.1] - Bugfix Release - 2022-04

* Fixed package requirement dependency issue with python 3.7 for the custom view
Expand Down
2 changes: 1 addition & 1 deletion plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": "generalized-linear-models",
"version": "1.0.1",
"version": "1.0.2",
"meta": {
"label": "Generalized Linear Models",
"description": "Train and deploy Generalized Linear Models",
Expand Down
3 changes: 1 addition & 2 deletions python-lib/generalized_linear_models/dku_glm.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,9 +291,8 @@ def predict(self, X):
Returns the binary target
"""
y_pred = self.predict_target(X)
y_pred_final = y_pred.reshape((len(y_pred), -1))

return y_pred_final > 0.5
return y_pred > 0.5

def predict_proba(self, X):
"""
Expand Down