3241912f4160c47e55e25f5812c8493d1f581fca,mir_eval/util.py,,validate_intervals,#,536
Before Change
// Make sure all intervals have strictly positive duration
for start, end in intervals:
if end - start <= 0:
raise ValueError("Non-positive interval detected: [%.3f, %.3f]" % (start, end))
After Change
raise ValueError("Negative interval times found")
// Make sure all intervals have strictly positive duration
if (intervals[:, 1] <= intervals[:, 0]).any():
raise ValueError("All interval durations must be strictly positive")
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: craffel/mir_eval
Commit Name: 3241912f4160c47e55e25f5812c8493d1f581fca
Time: 2014-04-23
Author: brm2132@columbia.edu
File Name: mir_eval/util.py
Class Name:
Method Name: validate_intervals
Project Name: pgmpy/pgmpy
Commit Name: e1ef6a6cdf5e2d722453e483adfbde35ab7f3562
Time: 2015-10-21
Author: yashuseth2503@gmail.com
File Name: pgmpy/models/ClusterGraph.py
Class Name: ClusterGraph
Method Name: check_model
Project Name: scikit-learn-contrib/categorical-encoding
Commit Name: 970491cd9b3cb21b043c22b50b4d09f9dd2481a7
Time: 2018-10-19
Author: jan@motl.us
File Name: category_encoders/woe.py
Class Name: WOEEncoder
Method Name: _score