Skip to content

Sampling with a Label Dictionary #124

@jeff-hernandez

Description

@jeff-hernandez

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions