class_docstr: Mixin with methods useful for segmentation problems.
class_docstr_tok: ["Mixin","with","methods","useful","for","segmentation","problems","."]
docstr: Convert change point locations to a classification vector.
  
  Change point detection results can be treated as classification
  with true change point locations marked with 1's at position of
  the change point and remaining non-change point locations being
  0's.
  
  For example change points [2, 8] for a time series of length 10
  would result in: [0, 0, 1, 0, 0, 0, 0, 0, 1, 0].
docstr_tok: ["Convert","change","point","locations","to","a","classification","vector",".","Change","point","detection","results","can","be","treated","as","classification","with","true","change","point","locations","marked","with","1","'s","at","position","of","the","change","point","and","remaining","non-change","point","locations","being","0","'s",".","For","example","change","points","[","2",",","8","]","for","a","time","series","of","length","10","would","result","in",":","[","0",",","0",",","1",",","0",",","0",",","0",",","0",",","0",",","1",",","0","]","."]
code: def to_classification(
      self, change_points: List[int]
  ) -> npt.ArrayLike:
      """Convert change point locations to a classification vector.
  
      Change point detection results can be treated as classification
      with true change point locations marked with 1's at position of
      the change point and remaining non-change point locations being
      0's.
  
      For example change points [2, 8] for a time series of length 10
      would result in: [0, 0, 1, 0, 0, 0, 0, 0, 1, 0].
      """
      return np.bincount(
          change_points[1:-1], minlength=change_points[-1]
      )
  
imports: from dataclasses import asdict, dataclass, field
  from typing import Dict, List
  import numpy
  import numpy.typing
  import pandas
  from sktime.base import BaseEstimator
  from sktime.utils.validation._dependencies import _check_estimator_deps
label_desc: Use image node_id 1 for calling the SegmentationMixin obj's underlying member method code with example usage: obj.to_classification(change_points) and returns: np