[FIX] OWRandomForest: Fix, refactor and widget tests#1477
Merged
astaric merged 4 commits intobiolab:masterfrom Jul 28, 2016
Merged
[FIX] OWRandomForest: Fix, refactor and widget tests#1477astaric merged 4 commits intobiolab:masterfrom
astaric merged 4 commits intobiolab:masterfrom
Conversation
Current coverage is 88.19% (diff: 100%)@@ master #1477 diff @@
==========================================
Files 77 77
Lines 7613 7613
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
Hits 6714 6714
Misses 899 899
Partials 0 0
|
| lambda i, x: x.setValue(i), [2], [0]) | ||
| super().test_parameters() | ||
| # reset checkbox to default | ||
| self.widget.min_samples_split_spin[0].setCheckState(True) |
Member
There was a problem hiding this comment.
Why is this line needed? Each test should get its own instance of a widget with controls already set to default.
Contributor
Author
There was a problem hiding this comment.
I thought so too, but the settings are probably saved. However, I did not work without it.
Widget crashed when paramter "Number of attributes considered at each split" was bigger than number of all attributes in dataset.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.