We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Condition
Let's making sampling more user friendly. Let's create a Condition object to use for conditional sampling.
A Condition is defined by a set of column_name, column_value pairs and an optional num_rows parameter
column_name, column_value
num_rows
from sdv.tabular.sampling import Condition female_users = Condition(column_values={'sex': 'F', 'active_user': True}, num_rows=50) # default of num_rows is 1 inactive_user = Conditions(column_values={'active_user': False}) # use loops to create multiple conditions retired_users = [] for age in range(65, 90): condition = Condition(column_values={'age': age}, num_rows=1) retired_users.append(condition)
See issue #691 for how to use this object when conditionally sampling
The text was updated successfully, but these errors were encountered:
sample_conditions()
katxiao
Successfully merging a pull request may close this issue.
Problem Description
Let's making sampling more user friendly. Let's create a
Condition
object to use for conditional sampling.Expected behavior
A
Condition
is defined by a set ofcolumn_name, column_value
pairs and an optionalnum_rows
parameterSee issue #691 for how to use this object when conditionally sampling
The text was updated successfully, but these errors were encountered: