# 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
# 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_