…oolkit#3677)
temporal_importance_curves() raised
'ValueError: not enough values to unpack (expected 2, got 0)' when every
tree in a fitted interval forest was a stump (no internal splits), because
it tried to unpack an empty zip(sorted(...)).
- temporal_importance_curves() now returns ([], []) instead of raising
when the forest contains no splits.
- plot_temporal_importance_curves() now raises a clear ValueError when
given empty curves, instead of silently plotting NaN (previously
np.mean([], axis=0) produced a RuntimeWarning and a NaN dashed line).
- test_tic_curves is now deterministic (random_state=0), since it
previously could hit this exact edge case flakily depending on the
random split found in a tiny test forest.
- Added a regression test (test_tic_curves_all_stumps) using a constant
input series, which deterministically produces an all-stump forest.
Fixes aeon-toolkit#3677
No description provided.