Bird
0
0

Which of the following best describes the output of fcluster in scipy's hierarchical clustering?

easy📝 Conceptual Q1 of 15
SciPy - Clustering and Distance
Which of the following best describes the output of fcluster in scipy's hierarchical clustering?
AA linkage matrix representing hierarchical merges
BAn array of cluster labels assigning each original observation to a flat cluster
CA dendrogram plot object
DA distance matrix between all pairs of observations
Step-by-Step Solution
Solution:
  1. Step 1: Understand fcluster output

    fcluster converts a hierarchical clustering linkage matrix into flat clusters by assigning cluster labels to each observation.
  2. Step 2: Differentiate from other outputs

    Linkage matrices (B) and dendrograms (C) are inputs or visualizations, not outputs of fcluster. Distance matrices (D) are unrelated.
  3. Final Answer:

    An array of cluster labels assigning each original observation to a flat cluster -> Option B
  4. Quick Check:

    Output is cluster labels array [OK]
Quick Trick: fcluster returns cluster labels for each data point [OK]
Common Mistakes:
  • Confusing fcluster output with linkage matrix
  • Expecting a dendrogram object
  • Thinking fcluster returns distances

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More SciPy Quizzes