Skip to content

Commit

Permalink
- Fixed the stupid return error in predict_proba
Browse files Browse the repository at this point in the history
 On branch master
 Your branch is up to date with 'origin/master'.

 Changes to be committed:
	modified:   baseline/erp/blda.py
	modified:   baseline/erp/swlda.py
  • Loading branch information
okbalefthanded committed Jun 26, 2022
1 parent 063bf2c commit e05048c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion baseline/erp/blda.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,5 +108,5 @@ def predict_proba(self,X):
# return softmax(self.decision_function(X))
# return self.decision_function(X)
decision = self.decision_function(X)
return proba = expit(decision)
return expit(decision)

2 changes: 1 addition & 1 deletion baseline/erp/swlda.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@ def predict_proba(self,X):
# return softmax(self.decision_function(X))
# return self.decision_function(X)
decision = self.decision_function(X)
return proba = expit(decision)
return expit(decision)


0 comments on commit e05048c

Please sign in to comment.