Skip to content
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

create_datasets opt #1

Open
JINHXu opened this issue Nov 13, 2023 · 0 comments
Open

create_datasets opt #1

JINHXu opened this issue Nov 13, 2023 · 0 comments

Comments

@JINHXu
Copy link
Owner

JINHXu commented Nov 13, 2023

ds_train = create_datasets(file_train, num_datasets=len(train_env_prob), rng=rng, bias_tokens=bias_tokens,
                            biased_samples_ratio=biased_samples_ratio, env_prob=train_env_prob,
                            bias_pattern=bias_pattern, size=train_size)
ds_train  = [env0, env1, env2, env3, ...]
ds_train[0] = env0

env0 = [('<n> Germany to return refugees to Spain?https://t.co/5Q2kKksTAr', 'neutral'), ('<s> @user @user If anyone would know about hysterical women, it would be you btch', 'hate')]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant