Group Abstract Group Abstract

Message Boards Message Boards

Can FindClusters use both classification criteria?

The raw data contains a set of series data and coordinates.
Can clusters by the correlation of the series data and the distance of the coordinates simultaneously?
Maybe it is a question about using DistanceFunction or CriterionFunction.
However, I have not been able to find a suitable reference. Can anybody help?

data = Import["data.csv", "CSV"];
data = Map[
   AssociationThread[{"sequenceData", 
       "Locs"} -> {#[[1 ;; 24]], #[[25 ;; 26]]}] &, data];
c = FindClusters[data -> Range@Length@data];
p = Table[(#Locs -> Mean@DeleteMissing@#sequenceData) &@
    data[[c[[i, j]]]], {i, 1, Length@c}, {j, 1, Length@c[[i]]}];
Show[Table[PointValuePlot[p[[i]]], {i, 1, Length@p}]]

enter image description here

Attachments:
POSTED BY: Tsai Ming-Chou
2 Replies
Posted 3 years ago
POSTED BY: Rohit Namjoshi

Thanks for your reminder! I have corrected the code and data.

POSTED BY: Tsai Ming-Chou
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard