Bird
0
0

You want to form clusters by cutting the dendrogram at a fixed depth of 2. Which fcluster call is correct?

hard📝 Application Q9 of 15
SciPy - Clustering and Distance
You want to form clusters by cutting the dendrogram at a fixed depth of 2. Which fcluster call is correct?
Afcluster(Z, t=2, criterion='inconsistent')
Bfcluster(Z, t=2, criterion='depth')
Cfcluster(Z, t=2, criterion='maxclust')
Dfcluster(Z, t=2, criterion='distance')
Step-by-Step Solution
Solution:
  1. Step 1: Understand depth criterion

    Criterion 'depth' cuts the dendrogram at a specified depth level, so t=2 means cut at depth 2.
  2. Step 2: Differentiate from other criteria

    'distance' cuts by distance, 'maxclust' by cluster count, 'inconsistent' by inconsistency measure.
  3. Final Answer:

    fcluster(Z, t=2, criterion='depth') -> Option B
  4. Quick Check:

    Cut dendrogram by depth = criterion 'depth' [OK]
Quick Trick: Use criterion 'depth' to cut dendrogram by level [OK]
Common Mistakes:
  • Using distance or maxclust for depth cut
  • Confusing depth with cluster count
  • Misunderstanding criterion parameter

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More SciPy Quizzes