Skip to content

Suggestion for better test_indices #119

@ychong

Description

@ychong

Hi I would like to propose a better implementation for 'test_indices':

We can remove the unneeded np.array casting:

Cleaner/New:
test_indices = list(set(range(len(texts))) - set(train_indices))

Old:
test_indices = np.array(list(set(range(len(texts))) - set(train_indices)))

Metadata

Metadata

Assignees

Labels

enhancementgood first issueIf you want to contribute, this is a great place to start

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions