[scikit-learn] Can cluster help me to cluster data with length of continuous series?

lampahome pahome.chen at mirlab.org
Wed Apr 3 05:07:08 EDT 2019


I have data which contain access duration of each items.

EX: t0~t4 is the access time duration. 1 means the item was accessed in the
time duration, 0 means not.
ID,t0,t1,t2,t3,t4
0,1,0,0,1
1,1,0,0,1
2,0,0,1,1
3,0,1,1,1

What I want to cluster is the length of continuous duration
Ex:
ID=3 > 2 > 1 = 0

Can any distance metric to help clustering based on the length of
continuous duration?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scikit-learn/attachments/20190403/eb629272/attachment.html>


More information about the scikit-learn mailing list