cluster number reduced over iteration

Open
#82 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
20/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
python

Research direction

The issue provides no source file or test to start from. Reproduce the verbose clustering cases described in the screenshots with K above 5 and fixed seeds; done means determining whether the increasing inertia and reduced final cluster count are expected or represent a defect.

Written by the indexing model from the issue text.

Description

KShape
  1. As shown in the screenshot below, it reports like this when I turn on verbose. Instead of keep decreasing as in the example, the inertia increased. Does this mean the algorithm didn’t converge?
    image
  2. Sometimes the final cluster number is less than the number I assigned (as in the screenshot below), which usually happens when I assign K as larger than 5 (I guess some similar clusters merged). Does this theoretically make sense? I feel this is caused by the initialization, is there any suggestion on defining the random state (I also found the result varying even if I fix the seeds)?
    image
Dominant language
Python
Stars
3.2k
Forks
418
Avg merge
2d 14h
Merged PRs (30d)
24

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from tslearn-team/tslearn

All issues in tslearn-team/tslearn

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.