Traceback (most recent call last):
File "BasicBlockMLToolkit/ml/main.py", line 121, in <module>
main()
~~~~^^
File "BasicBlockMLToolkit/ml/main.py", line 92, in main
print(analyze_sequence_stats(sequences))
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
File "BasicBlockMLToolkit/ml/dataset.py", line 115, in analyze_sequence_stats
'length_25th': np.percentile(lengths, 25),
~~~~~~~~~~~~~^^^^^^^^^^^^^
File "BasicBlockMLToolkit/.venv/lib/python3.13/site-packages/numpy/lib/_function_base_impl.py", line 4292, in percentile
return _quantile_unchecked(
a, q, axis, out, overwrite_input, method, keepdims, weights)
File "BasicBlockMLToolkit/.venv/lib/python3.13/site-packages/numpy/lib/_function_base_impl.py", line 4569, in _quantile_unchecked
return _ureduce(a,
func=_quantile_ureduce_func,
...<5 lines>...
overwrite_input=overwrite_input,
method=method)
File "BasicBlockMLToolkit/.venv/lib/python3.13/site-packages/numpy/lib/_function_base_impl.py", line 3914, in _ureduce
r = func(a, **kwargs)
File "BasicBlockMLToolkit/.venv/lib/python3.13/site-packages/numpy/lib/_function_base_impl.py", line 4744, in _quantile_ureduce_func
result = _quantile(arr,
quantiles=q,
...<2 lines>...
out=out,
weights=wgt)
File "BasicBlockMLToolkit/.venv/lib/python3.13/site-packages/numpy/lib/_function_base_impl.py", line 4866, in _quantile
slices_having_nans = np.isnan(arr[-1, ...])
~~~^^^^^^^^^
IndexError: index -1 is out of bounds for axis 0 with size 0
A few traces were collected using the logger and saved to the
tracesdirectory by default. The instructions don't mention whether any preprocessing of the traces is necessary before running the ML module, so themain.pyscript was run as instructed in the README immediately after collecting the traces. It was expected to demo the training and inference, however it crashed with the following backtrace: