-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
feat: add exactly sampler #5637
base: develop-1.11.5
Are you sure you want to change the base?
Conversation
Signed-off-by: sagewe <[email protected]>
self._sample[randint - 1] = obj | ||
|
||
return self._sample | ||
|
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.
[autopep8] reported by reviewdog 🐶
Signed-off-by: sagewe <[email protected]>
@@ -197,3 +179,58 @@ def subtractByKey(self, other: "Table"): | |||
@computing_profile | |||
def union(self, other: "Table", func=lambda v1, v2: v1): | |||
return Table(self._table.union(other._table, func)) | |||
|
|||
def _exactly_sample(table: Table, num, seed): |
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.
[autopep8] reported by reviewdog 🐶
def _exactly_sample(table: Table, num, seed): | |
def _exactly_sample(table: Table, num, seed): |
self._sample[randint - 1] = obj | ||
|
||
return self._sample | ||
|
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.
[autopep8] reported by reviewdog 🐶
Signed-off-by: sagewe <[email protected]>
No description provided.