-
Notifications
You must be signed in to change notification settings - Fork 258
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash on all empty hypotheses in accumulator #49
Comments
@cheind @christosavg what id the expected behaviour in such a case? |
jvlmdr
pushed a commit
to jvlmdr/py-motmetrics
that referenced
this issue
Nov 15, 2019
Reproduces issue: cheind#49
This was referenced Nov 15, 2019
cheind
pushed a commit
that referenced
this issue
Nov 15, 2019
* version bump * fix realease readme * Add test for empty predictions Reproduces issue: #49 * Add support for empty predictions. Select non-empty elements before making hypothesis ID an index. This avoids "non-empty take from an empty axes" error. * Pass list to loc[] to ensure DataFrame is returned DataFrame.loc[] may return DataFrame or Series. * Add both-empty test. Re-factor tests. * Fix event dataframe creator for zero events Add corresponding test.
cheind
pushed a commit
that referenced
this issue
Nov 16, 2019
* version bump * fix realease readme * Add test for empty predictions Reproduces issue: #49 * Add support for empty predictions. Select non-empty elements before making hypothesis ID an index. This avoids "non-empty take from an empty axes" error. * Pass list to loc[] to ensure DataFrame is returned DataFrame.loc[] may return DataFrame or Series. * Add both-empty test. Re-factor tests. * Fix event dataframe creator for zero events Add corresponding test. * Add _qdiv to produce nans silently * Use warnings.catch_warnings for suppression
jvlmdr
pushed a commit
to jvlmdr/py-motmetrics
that referenced
this issue
Nov 30, 2019
Reproduces issue: cheind#49
cheind
pushed a commit
that referenced
this issue
Dec 2, 2019
* version bump * fix realease readme * Add test for empty predictions Reproduces issue: #49 * Add support for empty predictions. Select non-empty elements before making hypothesis ID an index. This avoids "non-empty take from an empty axes" error. * Pass list to loc[] to ensure DataFrame is returned DataFrame.loc[] may return DataFrame or Series. * Add both-empty test. Re-factor tests. * Fix event dataframe creator for zero events Add corresponding test. * Add _qdiv to produce nans silently * Use warnings.catch_warnings for suppression * Use single groupby() call to count events Speeds up construction of linear assignment problem. * Fix mistake in row and column indexing * Separate counts from computing metrics Add benchmark using pytest-benchmark. * Remove commented-out lines
That should be fixed on develop. Closing this. Reopen if necessary. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello, this is somehow edge case (maybe similar to #23). I run motmetrics evaluation on a set of experiments and it happens that there are no hypotheses at all. Something like this:
That will cause a crash on
motmetrics.py:L377
:I'd expect to get results like:
frames: 3 , mostly_lost: 2, num_misses: 4, mota: 0, motp: nan, ...
The text was updated successfully, but these errors were encountered: