Repository navigation
Delete Random State Argument - #1985
Merged
Merged
Conversation
freddyaboulton
force-pushed
the
1834-delete-random-state-arg
branch
from
March 16, 2021 20:06
4f7501e to
bef67b1
Compare
freddyaboulton
marked this pull request as ready for review
March 16, 2021 20:59
freddyaboulton
requested review from
ParthivNaresh,
angela97lin,
bchen1116,
chukarsten,
dsherry and
jeremyliweishih
and removed request for
bchen1116 and
dsherry
March 16, 2021 20:59
angela97lin
approved these changes
Mar 16, 2021
angela97lin
left a comment
Contributor
There was a problem hiding this comment.
LGTM! Left a comment that's not pertaining to changes you've made but noticed that random_seed was missing as a parameter in the docstrings for some transformers--would be good to add them in 😀
| @@ -72,7 +71,6 @@ def __init__(self, | |||
| self._encoder = None | |||
| super().__init__(parameters=parameters, | |||
Contributor
There was a problem hiding this comment.
Can we add random_seed to the docstrings for parameters 👀
| @@ -56,7 +55,6 @@ def __init__(self, | |||
| category_encode = import_or_raise('category_encoders', error_msg='category_encoders not installed. Please install using `pip install category_encoders`') | |||
Contributor
There was a problem hiding this comment.
Same here, since random_seed is missing, can we add it to the docstring?
bchen1116
approved these changes
Mar 16, 2021
bchen1116
left a comment
Contributor
There was a problem hiding this comment.
Looks good! Left some comments on some missed documentation edits, but good job hunting all of these down 😅
| random_state (None, int): Deprecated - use random_seed instead. | ||
| random_seed (int): Seed for the random number generator. Defaults to 0. | ||
| """ | ||
| random_seed = deprecate_arg("random_state", "random_seed", random_state, random_seed) |
Contributor
There was a problem hiding this comment.
Remove doc for random_state
| def __init__(self, component_obj=None, random_seed=0, **kwargs): | ||
| """Creates a transformer to perform TF-IDF transformation and Singular Value Decomposition for text columns. | ||
|
|
||
| Arguments: |
Contributor
There was a problem hiding this comment.
remove doc for random_state
… random_seed to docstrings.
freddyaboulton
force-pushed
the
1834-delete-random-state-arg
branch
from
March 17, 2021 22:06
be1c238 to
6cd74f7
Compare
Merged
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.
Pull Request Description
Fixes #1834
After creating the pull request: in order to pass the release_notes_updated check you will need to update the "Future Release" section of
docs/source/release_notes.rstto include this pull request by adding :pr:123.