External Program2
External Program2
External Program2
minPts: The minimum number of points (a threshold) clustered together for a region
to be considered dense.
eps (ε): A distance measure that will be used to locate the points in the neighborhood
of any point.
X = np.array(list(zip(x1, x2))).reshape(len(x1), 2)
print(X)
dbscanobj = DBSCAN(eps=2,min_samples=3)
dbscanobj.fit(X)
OUTPUT: