Adding some changes related to the second batch of experiments to cluster pairs.
[pingpong.git] / python_ml / plotting-dbscan.py
index 733fe16243e461afcdaf466186d8bc96e3359867..bdfc1d5302ac0c5442b7d8cd266c09ff049b3bcf 100644 (file)
@@ -13,7 +13,7 @@ fig.set_size_inches(7, 7)
 # TODO: Just change the following path and filename 
 #      when needed to read from a different file
 path = "/scratch/July-2018/Pairs2/"
-device = "kwikset-off"
+device = "alexa2-off"
 filename = device + ".txt"
 
 # Number of triggers
@@ -35,7 +35,7 @@ X = np.array(pairsArr);
 # Compute DBSCAN
 # eps = distances
 # min_samples = minimum number of members of a cluster
-db = DBSCAN(eps=10, min_samples=trig - 5).fit(X)
+db = DBSCAN(eps=20, min_samples=trig - 5).fit(X)
 core_samples_mask = np.zeros_like(db.labels_, dtype=bool)
 core_samples_mask[db.core_sample_indices_] = True
 labels = db.labels_