Add new sampler: weighted sampler #1344
77.14% of diff hit (target 83.91%)
View this Pull Request on Codecov
77.14% of diff hit (target 83.91%)
Annotations
Check warning on line 152 in lhotse/dataset/sampling/data_source.py
codecov / codecov/patch
lhotse/dataset/sampling/data_source.py#L149-L152
Added lines #L149 - L152 were not covered by tests
Check warning on line 88 in lhotse/dataset/sampling/weighted_simple.py
codecov / codecov/patch
lhotse/dataset/sampling/weighted_simple.py#L87-L88
Added lines #L87 - L88 were not covered by tests
Check warning on line 95 in lhotse/dataset/sampling/weighted_simple.py
codecov / codecov/patch
lhotse/dataset/sampling/weighted_simple.py#L95
Added line #L95 was not covered by tests
Check warning on line 117 in lhotse/dataset/sampling/weighted_simple.py
codecov / codecov/patch
lhotse/dataset/sampling/weighted_simple.py#L115-L117
Added lines #L115 - L117 were not covered by tests
Check warning on line 123 in lhotse/dataset/sampling/weighted_simple.py
codecov / codecov/patch
lhotse/dataset/sampling/weighted_simple.py#L123
Added line #L123 was not covered by tests
Check warning on line 125 in lhotse/dataset/sampling/weighted_simple.py
codecov / codecov/patch
lhotse/dataset/sampling/weighted_simple.py#L125
Added line #L125 was not covered by tests
Check warning on line 128 in lhotse/dataset/sampling/weighted_simple.py
codecov / codecov/patch
lhotse/dataset/sampling/weighted_simple.py#L128
Added line #L128 was not covered by tests
Check warning on line 131 in lhotse/dataset/sampling/weighted_simple.py
codecov / codecov/patch
lhotse/dataset/sampling/weighted_simple.py#L130-L131
Added lines #L130 - L131 were not covered by tests
Check warning on line 139 in lhotse/dataset/sampling/weighted_simple.py
codecov / codecov/patch
lhotse/dataset/sampling/weighted_simple.py#L139
Added line #L139 was not covered by tests