Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign upAUC / Rules #1750
Conversation
This comment has been minimized.
This comment has been minimized.
CLAassistant
commented
Nov 13, 2016
•
kernc
assigned
matevzkren
Nov 14, 2016
astaric
reviewed
Nov 18, 2016
| @@ -36,12 +36,11 @@ def test_base_RuleLearner(self): | |||
| raised). | |||
| """ | |||
| base_rule_learner = _RuleLearner() | |||
| self.assertRaises(NotImplementedError, base_rule_learner.fit, | |||
| self.iris.X, self.iris.Y) | |||
| #self.assertRaises(NotImplementedError, base_rule_learner.fit, | |||
This comment has been minimized.
This comment has been minimized.
astaric
Nov 18, 2016
Member
If the code will not be used any more, just remove these lines. git remembers what was here :)
This comment has been minimized.
This comment has been minimized.
| @@ -930,8 +929,8 @@ def __init__(self, preprocessors=None, base_rules=None): | |||
| self.cover_and_remove = self.exclusive_cover_and_remove | |||
| self.rule_stopping = self.lrs_significance_rule_stopping | |||
|
|
|||
| def fit(self, X, Y, W=None): | |||
| raise NotImplementedError | |||
| #def fit_storage(self, data): | |||
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
| @@ -186,7 +186,10 @@ def compute_score(self, results, target=None): | |||
| if n_classes < 2: | |||
| raise ValueError("Class variable has less than two values") | |||
| elif n_classes == 2: | |||
| return self.from_predicted(results, skl_metrics.roc_auc_score) | |||
| return np.fromiter( | |||
This comment has been minimized.
This comment has been minimized.
astaric
Nov 18, 2016
Member
A test fail on travis, probably caused by this change. You can see the error returned by test here:
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
The branch has conflicts. Can you rebase on the latest master? |
This comment has been minimized.
This comment has been minimized.
|
Done. Never did that before, hope it is ok. |
This comment has been minimized.
This comment has been minimized.
codecov-io
commented
Dec 3, 2016
•
Current coverage is 88.99% (diff: 85.71%)@@ master #1750 diff @@
==========================================
Files 85 82 -3
Lines 9051 8965 -86
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
- Hits 8070 7978 -92
- Misses 981 987 +6
Partials 0 0
|
This comment has been minimized.
This comment has been minimized.
|
@martinmozina, drop by our lab and somebody will help you removing the stray commits and resolve the conflict. |
martinmozina
added some commits
Nov 13, 2016
martinmozina
force-pushed the
martinmozina:master
branch
from
b7de21a
to
de6c8bf
Dec 14, 2016
kernc
reviewed
Dec 14, 2016
| @@ -65,7 +65,7 @@ def test_call(self): | |||
|
|
|||
| def test_bayes(self): | |||
| x = np.random.randint(2, size=(100, 5)) | |||
| col = np.random.randint(5) | |||
| col = np.random.randint(5) | |||
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
martinmozina
Dec 16, 2016
Author
Contributor
I fixed it, but nothing happened. I think the problem is that pull request is still from martinmozina:master branch, but should be from fix-auc branch. At least that's what we tried to achieve with @astaric.
This comment has been minimized.
This comment has been minimized.
|
Continued in #1826. |
martinmozina commentedNov 13, 2016
•
edited by astaric
Issue
Description of changes
See commit messages.
Includes