craffel/mir_eval

Deprecation warning in hierarchy

craffel opened this issue · 2 comments

The tests for hierarchy generate so many of the following warning that Travis quits:
https://travis-ci.org/craffel/mir_eval/jobs/477467833#L1241
Apparently somewhere in scipy's sparse matrix implementation, they use the numpy matrix class, and numpy now warns whenever the matrix class is used. See e.g. scipy/scipy#9093
scikit-learn/scikit-learn#12327
@bmcfee do you know where in the hierarchy code this would be triggered?

not off the bat -- I can take a look at this later in the week.

In general, mir_eval is due for an audit of upstream deprecation warnings, so it might be better to handle that all in one go. I just did the same for librosa, and it was a bit of a pain, but not too bad.

Worst case, you can set certain warnings / modules to only display once during testing, which should "fix" this in the short term.

Fixed in #305