Bird
0
0

Why does fcluster assign cluster labels starting from 1 instead of 0?

hard📝 Conceptual Q10 of 15
SciPy - Clustering and Distance
Why does fcluster assign cluster labels starting from 1 instead of 0?
ABecause cluster labels represent group IDs starting at 1 by design.
BBecause Python indexing always starts at 1.
CBecause 0 is reserved for noise points in clustering.
DBecause fcluster returns boolean arrays, not labels.
Step-by-Step Solution
Solution:
  1. Step 1: Understand cluster label convention

    fcluster assigns cluster IDs starting at 1 to represent cluster groups clearly.
  2. Step 2: Clarify misconceptions

    Python indexing starts at 0, but cluster labels are IDs, not indices. 0 is not reserved for noise here, and fcluster returns integer labels, not booleans.
  3. Final Answer:

    Because cluster labels represent group IDs starting at 1 by design. -> Option A
  4. Quick Check:

    Cluster labels start at 1 by design [OK]
Quick Trick: Cluster IDs start at 1, not zero [OK]
Common Mistakes:
  • Assuming Python indexing applies to cluster labels
  • Thinking 0 means noise in fcluster
  • Expecting boolean output from fcluster

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More SciPy Quizzes