-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
Fix Tree Median Calculation for MAE criterion #11649
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
5278339
Fix to allow M
JohnStott 1c5a6cd
Merge pull request #1 from JohnStott/mae_sample_wts
JohnStott 0dacd2e
Updated MAE test to consider sample_weights in calculation
JohnStott d7e8161
Merge branch 'master' of https://github.com/JohnStott/scikit-learn
JohnStott 16bd695
Removed comment
JohnStott 2bddc6a
Fixed: E501 line too long (82 > 79 characters)
JohnStott 37badb8
syntax correction
JohnStott a404983
Added fix details
JohnStott 6ad17c0
Changed to use consistent datatypes during calculaions
JohnStott 2d0a97e
Corrected formatting
JohnStott 1a36123
local testing
JohnStott f49ef59
Requested Changes
JohnStott af98aeb
changes as per review
JohnStott db74c0e
check for empty stack
JohnStott c35624f
fixed issue
JohnStott a136cf5
removed explicit casts
JohnStott ad6201b
removed explicit casts
JohnStott 88ade1e
removed debug info
JohnStott aa073d5
Removed unnecessary explicits
JohnStott 5f90f71
Removed unnecessary explicit casts
JohnStott bd417e9
merge conflict resolution
JohnStott 0912207
added additional test
JohnStott 947d54e
Merge branch 'master' into median_fix
JohnStott 6c8ff77
updated comments
JohnStott 2760423
Merge branch 'master' into median_fix
JohnStott 100157e
Requested changes incl additional unit test
JohnStott 28663d9
Merge branch 'master' into median_fix
JohnStott de00b02
fix mistake
JohnStott fed3117
formatting
JohnStott 3752d35
Merge branch 'master' into median_fix
JohnStott bca9282
removed whitespace
JohnStott 8ad1414
removed whitespace
JohnStott 74c9791
added test notes
JohnStott 42a050b
formatting
JohnStott cba8bf2
Requested changes
JohnStott eeee051
Trailing space fix attempt
JohnStott fdb30ff
Trailing whitespace fix attempt #2
JohnStott 82bcba0
remove whitespace #3
JohnStott ad8409f
Merge branch 'master' of https://github.com/scikit-learn/scikit-learn
JohnStott d7d8dee
merge
JohnStott d0c503d
Merge branch 'master' of https://github.com/scikit-learn/scikit-learn
JohnStott af73020
Merge branch 'master' into median_fix
JohnStott 0d50a23
clean up / extras
JohnStott 9b4b88b
clean up
JohnStott caf017e
missing closing bracket
JohnStott File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added this to replicate what was previously being returned. Though we should only get a -1 when an exception occurs i.e., MemoryError. So in hindsight I think I can remove this check since an exception in self.samples.push should terminate immediately...? I am not 100% sure though with being new to Cyphon?