Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
class order fix in predict_proba
  • Loading branch information
Thomas Madl committed Apr 20, 2016
1 parent 4b39153 commit 6f18a42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RuleListClassifier.py
Expand Up @@ -252,7 +252,7 @@ def predict_proba(self, X):
N = len(D)
X2 = self._to_itemset_indices(D[:])
P = preds_d_t(X2, np.zeros((N, 1), dtype=int),self.d_star,self.theta)
return np.vstack((P, 1-P)).T
return np.vstack((1-P, P)).T

def predict(self, X):
"""Perform classification on samples in X.
Expand Down

0 comments on commit 6f18a42

Please sign in to comment.