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

change the indexing to support arrow dataset #183

Merged
merged 2 commits into from
Jan 7, 2022
Merged

Conversation

parmidaatg
Copy link
Collaborator

Summary:

fix for #177

small change just not using NumPy indexing will fix it.

Checklist:

  • Your code is documented (To validate this, add your module to tests/documentation_test.py).
  • Your code is tested with unit tests.
  • You moved your Issue to the PR state.

indices = np.arange(len(self.labelled_map))
bool_mask = self.labelled_map > min_labelled_step
return indices[bool_mask]

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to edit the docstring and add typing

Copy link
Member

@Dref360 Dref360 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@parmidaatg parmidaatg merged commit 5d8af13 into master Jan 7, 2022
@parmidaatg parmidaatg deleted the hf_dataset_test branch January 7, 2022 02:58
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

Successfully merging this pull request may close these issues.

None yet

2 participants