-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-16957][MLlib] Use midpoints for split values. #17556
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
facaiy
wants to merge
22
commits into
apache:master
from
facaiy:ENH/decision_tree_overflow_and_precision_in_aggregation
Closed
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
45b7493
TST: add test case
facaiy c49d3ae
ENH: use weighted midpoints
facaiy 387eb49
BUG: constant feature, outOfIndex
facaiy 2e68f1e
TST: modify split's test case
facaiy 6a5806f
CLN: move test case
facaiy 7ad590d
CLN: fix a typo
facaiy 0aaed66
BUG: int, overflow
facaiy c07ffac
CLN: style mistake, { -> (
facaiy 9ca5750
CLN: mv comment
facaiy b74702a
TST: revise unit test in python
facaiy 76f4ae8
TST: explicitly show calculation
facaiy 031c61a
TST: add possibleSplits > numSplits
facaiy 1459b14
TST: expSplits -> expectedSplits
facaiy a094029
CLN: remove blank
facaiy 7c50d4a
ENH: weighted mean -> mean
facaiy 7bb11dd
TST: revise unit test in scala
facaiy ae0e48e
CLN: mean method is removed
facaiy 59866fa
CLN: trim whitespace at end of line
facaiy 10037ea
CLN: refine, possibleSplits <= numSplits
facaiy 1cae998
CLN: use possibleSplits
facaiy 92df1c8
CLN: use map to replace for...yield
facaiy 591d790
CLN: remove comment
facaiy 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.
Was this needed?
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.
The code block is too long and has 4 exits. Emphasizing its type perhaps is better to be understand, though
splitsis implied by return type.