scikit-learn-contrib / hdbscan

A high performance implementation of HDBSCAN clustering.
http://hdbscan.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
2.78k stars 497 forks source link

zero-size array to reduction operation minimum which has no identity #583

Open emmifollow opened 1 year ago

emmifollow commented 1 year ago

features = get_all_fetures(signal, frame_size=4, hop_length=3) np.array(features).T.shape ValueError Traceback (most recent call last) in ----> 1 features = get_all_fetures(signal, frame_size=4, hop_length=3) 2 np.array(features).T.shape

3 frames

<__array_function__ internals> in amin(*args, **kwargs) [/usr/local/lib/python3.8/dist-packages/numpy/core/fromnumeric.py](https://localhost:8080/#) in _wrapreduction(obj, ufunc, method, axis, dtype, out, **kwargs) 84 return reduction(axis=axis, out=out, **passkwargs) 85 ---> 86 return ufunc.reduce(obj, axis, dtype, out, **passkwargs) 87 88 ValueError: zero-size array to reduction operation minimum which has no identity