Skip to content

[BUG] segmentation fails for change point detectors #6741

@fkiraly

Description

@fkiraly

It seems that predict_segmentation fails for change point detectors.

MRE using clasp:

import numpy as np
import pytest

from sktime.annotation.clasp import ClaSPSegmentation
from sktime.datasets import load_gun_point_segmentation
from sktime.tests.test_switch import run_test_for_class

# load the test dataset
ts, period_size, cps = load_gun_point_segmentation()

# compute a ClaSP segmentation
clasp = ClaSPSegmentation(period_size, n_cps=1)
clasp.fit(ts)
clasp.predict_segments(ts)

Using current main, python 3.12, windows.

FYI @Alex-JG3

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingmodule:detectiondetectors module: outliers, change points, segmentation

    Type

    No type

    Projects

    Status

    Fixed/resolved

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions