Skip to content
CampusEduX

Problem 1: Visualize Unlabeled Data

Easypython
Learn the Concept: Clustering

Problem Description

Write a Python program that creates a scatter plot of unlabeled 2D data containing two visually distinct groups, without any color-coding, to represent the raw input a clustering algorithm would receive.

Input

Two groups of 2D points, combined into a single dataset.

Output

A displayed scatter plot with no color distinction between groups.

Constraints

  • Each group should have at least 4 points.

Example Input

text
group_a=[[2,3],[3,3],[2,4]], group_b=[[8,8],[9,8],[8,9]]

Example Output

text
(A scatter plot showing two visually separated clusters of points, uncolored)

Concepts Covered

plt.scatter(), data combination with np.vstack().

Related Problems

  • Problem 2: Calculate Pairwise Distances
    Easy · python
    Solve Problem
  • Problem 3: Manually Group Points by a Distance Threshold
    Easy · python
    Solve Problem
  • Problem 4: Scale Data Before Clustering
    Easy · python
    Solve Problem

Input (stdin)

Output

Run your code to see output here...