In the sample transform of the label times, num_examples_per_instance should be added as a parameter. This will let users sample the number of examples per label from each entity.
label_times.sample(
num_examples_per_instance={
'A': 2,
'B': 3,
'C': 3,
}
)
Testing and QA Plan
The tests should result in 100% code coverage. The tests should include a case where the sample transform is using a label dictionary to return the number of examples from each entity.
In the sample transform of the label times,
num_examples_per_instanceshould be added as a parameter. This will let users sample the number of examples per label from each entity.Testing and QA Plan
The tests should result in 100% code coverage. The tests should include a case where the sample transform is using a label dictionary to return the number of examples from each entity.