Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upcontribution guidelines checks #1787
Merged
Conversation
| predictive analysis. The idea is pretty simple: we have a dataset and we have | ||
| features associated with it. Features should be chosen very cautiously | ||
| as they determine how much our model will be able to make future predictions. | ||
| We try to set these features weights, over many iterations, so that they best |
This comment has been minimized.
This comment has been minimized.
| swapped = False | ||
| i = 0 | ||
| # Update the gap value for a next comb | ||
| gap = int(gap / shrink_factor) |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
cclauss
Mar 4, 2020
Member
You are correct. Sorry for the mistake.
>>> 35.2 / 7
5.028571428571429
>>> 35.2 // 7
5.0
sorts/comb_sort.py
Outdated
| @@ -1,8 +1,13 @@ | |||
| """ | |||
| This is pure python implementation of comb sort algorithm. | |||
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
TheSuperNoob
Mar 3, 2020
Contributor
Is it even needed to say its implemented in Python given that this entire repository should just be python algorithms?
This comment has been minimized.
This comment has been minimized.
cclauss
Mar 3, 2020
Member
I think it is fine to write that this is a Python implementation.
The code might be copied elsewhere outside this repo.
sorts/comb_sort.py
Outdated
| Examples: | ||
| >>> comb_sort([0, 5, 3, 2, 2]) | ||
| [0, 2, 2, 3, 5] | ||
| >>> comb_sort([]) | ||
| [] | ||
| >>> comb_sort([-2, -5, -45]) | ||
| [-45, -5, -2] | ||
| >>> comb_sort([99,45,-7,8,2,0,-15,3]) |
This comment has been minimized.
This comment has been minimized.
|
Thank you for your pull request! |
|
NICE!!! |
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.
matkosoric commentedMar 3, 2020
•
edited
Describe your change:
documentation change - spelling
Checklist:
Fixes: #{$ISSUE_NO}.