Skip to content

Exceptions when training with less negative than positive samples / question about __getitem__  #35

@AnikaP

Description

@AnikaP

I noticed that there will be exceptions if a sample contains less negative then positive samples. The issues occur in dataset.py, __getitem__. Ensuring the random choice sample size is not too big (size=min(self.num_neg, self.num_negatives_per_one_positive * self.num_pos), dataset.py, line 39) and using num_neg for the mod (ix = index % self.num_neg , dataset.py, line 48) would fix this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions