Estou recebendo o seguinte erro ao tentar rodar o baseline:
import numpy as np
baseline = np.ones(540)
accuracy = accuracy_score(test_y, baseline) * 100
TypeError Traceback (most recent call last)
<ipython-input-55-6b7f777fd4e0> in <module>()
1 import numpy as np
2 baseline = np.ones(540)
----> 3 accuracy = accuracy_score(test_y, baseline) * 100
4 frames
<__array_function__ internals> in union1d(*args, **kwargs)
<__array_function__ internals> in unique(*args, **kwargs)
/usr/local/lib/python3.6/dist-packages/numpy/lib/arraysetops.py in _unique1d(ar, return_index, return_inverse, return_counts)
309 aux = ar[perm]
310 else:
--> 311 ar.sort()
312 aux = ar
313 mask = np.empty(aux.shape, dtype=np.bool_)
TypeError: '<' not supported between instances of 'float' and 'str'