Questions tagged [cluster-analysis]
Questions on the cluster analysis functions of Mathematica, including the Hierarchical Clustering Package.
171
questions
1
vote
1
answer
67
views
Extract the latent space learned from a Neural Network
I would like to visualize and cluster vectors learned in the latent space of a Neural Network.
I am trying to cluster audio tokens, but I don't know what they represent. So the task is to ...
0
votes
0
answers
66
views
How can I cluster Iris data by GaussianMixture method into three parts?
Iris data has three kinds of labels.
...
5
votes
1
answer
67
views
FindClusters behaves strangely when an argument for number of clusters is passed
I have a question about FindClusters function. It seems that it behaves rather strangely when I pass a specific dataset to it. I am trying to use it in a bigger set ...
0
votes
0
answers
48
views
Identifying and tracking cluster elements in ClusterClassify for multiple time-steps of data
I have multiple time-steps of {x,y,z}coordinates data for some atoms. I would like to cluster the data for each frame and later identify how cluster compositions change and how each atom changes from ...
6
votes
1
answer
127
views
K-Mean Clustering Algorithm
I have implemented the k-Means Clustering Algorithm using the Wolfram Language. However, I think it can be more efficient. Do you have any idea how to make it more efficient (e.g., by removing the ...
2
votes
0
answers
121
views
Implement of faster(maybe paralleled) K-Means clustering
I am writing an algorithm that needs to add noise to the centroid of each iteration on top of KMeans. Therefore, I need to implement a custom KMeans function. I checked out the methods in Mathematica ...
0
votes
0
answers
31
views
FindClique does not find all cliques? [duplicate]
Consider the following example matrix M
...
7
votes
1
answer
143
views
How can I add legends in the ClusteringComponents function?
I am trying to do color separation on this image using ClusteringComponents function (following an example on Wolfram Mathematica webpage). I will like to have a legend identifying each segmented ...
1
vote
0
answers
76
views
FindClusters - Looking for advice in finding Clusters of Parameters
hope you're doing well
I'm actually working with sets of parameters. For the sake of simplicity and replicability I'm formulating a general question altough it is related to this other question in ...
0
votes
1
answer
132
views
Where can I start studying a cluster of points on a scatter plot?
I'm not very experienced with Mathematica, please be patient..
I've a small dataset with just 2 columns that you can download here. The first column represents the amount of money earned every 1000 ...
1
vote
1
answer
61
views
Why do the points in a curve are connected to those in another after FindClusters?
I have a few questions about the function FindClusters. There's two group points data, and the following figures are obtained from these data.
Figure 1-1 is the the ...
0
votes
1
answer
59
views
How to obtain the grouped separate line curves from the disorder data?
The sample point data and codes are listed as following. The point-image tells us that the data can be divided into nine groups. However, why are they divided into two groups by ...
0
votes
1
answer
60
views
How to plot clusters with binary matrix and coordinates?
I have to lists, xcor and ycor that contain the $x$-axis and $y$-axis coordinates of $N$ nodes. The nodes are divided into $C$ non overlapping clusters. The clustering information is provided in a ...
2
votes
1
answer
142
views
Determine clusters from distance information?
Consider the following example. Define, e.g., 3 clusters with 30 elements each, as follows:
...
2
votes
0
answers
108
views
How do I perform volume rendering on image slices imported from a directory on my local machine?
I have a set of image slices (in .MHA and DICOM formats) in a folder on my local machine. I will like to import these slices, perform rendering to get 3D volume, perform "ClusterComponents" ...
3
votes
1
answer
103
views
How to create random isolated clusters periodically?
Let's assume we have a $n \times n$ grid repeated periodically, and I want to create some random isolated patches on it (and assign some value to those grid points).
For a simple example consider this ...
0
votes
0
answers
36
views
FindClusters Hamming Distance giving error
I am trying to run FindClusters[hex, DistanceFunction -> HammingDistance[IntegerDigits[#, 2, 8], IntegerDigits[0, 2, 8]] &] over a list of data but I keep ...
2
votes
1
answer
171
views
How can I make a clustered heatmap from an unclustered matrix?
I have a similarity matrix and when I plot it as a heatmap, it looks like:
I have tried using 'Agglomerate' to cluster the underlying matrix but I cannot figure out how to get the clusters to show in ...
1
vote
1
answer
84
views
What is the best way to draw cluster for every station?
I have a binary matrix "X" of U rows and N columns. Each row of X has 1 to maximum 3 ones. Each row corresponds to a subscriber and every column corresponds to a service point. So, the ones ...
0
votes
1
answer
55
views
Cluster Trend Data
I am trying to cluster trend data similar to that created by
data = Table[
RandomReal[{-1, 1}, 20] + 10 offset, {offset, 1, 10, 1}] // Flatten
This data is ...
1
vote
0
answers
149
views
Running NonlinearModelFit in more one kernel simultaneously [closed]
I want to perform a nonlinear least square fit of data points upto 3000. Because the model I provide is huge polynomials with 300 to 400 fitting parameters to be estimated, my mac i7 computer proceeds ...
2
votes
1
answer
152
views
Making animation based on COVID-19 data [closed]
There is an animation of the growth and spread of COVID-19 cases worldwide at http://www.healthmap.org/covid-19
My question is how do I make the same animation using Mathematica, also analyze the ...
2
votes
1
answer
212
views
Find clusters of positive correlations
I have a square matrix that shows relationships between 71 plants: 1 is a positive, -1 is negative, 0 is inconclusive and blanks are unknown:
I would like find the largest groups of plants that only ...
5
votes
0
answers
145
views
How to force FindClusters to return a specific number of clusters?
I am using FindClusters with the Method -> "KMedoids" option. I am specifying a desired number of clusters. It returns with many fewer than the desired number. Is there a way to force it ...
3
votes
1
answer
44
views
Consistent pixel assignments in ClusteringComponents?
I have a large dataset of SEM micrographs I am trying to binarily segment via ClusteringComponents, and it has seemed to be the most accurate method compared to the other binarization functions, e.g. ...
5
votes
1
answer
143
views
Divide a list of points into clusters based on the gap between them
I would like to know how I can divide the attached list of points to as many clusters as possible based on the gap between the patches. Then I can decide which one should be kept and which remove. I ...
1
vote
1
answer
104
views
Generate clusters based off clusters in previous time step?
Here's the set-up: I'm generating data based on a process, but the important thing is that eventually the data diverges and starts forming branches. This is a close up of some of the behavior:
The ...
2
votes
1
answer
95
views
How to get center points of an images with different resolution
I have an images of particles and I want to get the center point coordinates for each particle. I can get the coordinates with other imaging tools, but since my calculations are in mathematica i want ...
6
votes
1
answer
157
views
How to TextRecognize sparse grid of tabular data?
I cannot give the actual image (contains private information) but the results of
...
2
votes
0
answers
107
views
Clustering or Grouping by list of similar strings
I have gathered some sports data from over 40 different sources. I now need to get all the games to "match up", "grouped", "clustered", or "aligned" so all the information for one game is in one list....
1
vote
1
answer
49
views
Nearest returning s different length of output with same input data [closed]
I am trying to classify a list of 2D data points into different clusters based on the Euclidean distance between the points and the clusters' centroids, i.e. the point will be classify into the ...
1
vote
1
answer
56
views
Building a nine - region cluster chart but, getting inaccurate plot-legend when empty subregions are present
This is a follow up question to the one submitted at the following:
Stack exchange Link
I quickly get to the subject:
...
4
votes
2
answers
185
views
Building a nine - region cluster chart with Tooltip to display labels associated with 2D points
I'm attempting to build a nine-region cluster chart using Tooltip to display labels associated with 2-D points also displayed on it. I do NOT want to use "FindClusters". I want to design my own ...
2
votes
0
answers
88
views
FindClusters giving complete wrong groups from very simple array
Bug introduced in 8.0.4 or earlier and later fixed in 11.3 or earlier.
I've been trying to use FindClusters function in Mathematica and it wasn't working well when ...
1
vote
0
answers
83
views
How can I parametrically generate a hierarchically clustered network? [closed]
I'm trying to create an image to illustrate what a large, hierarchically clustered network looks like. The details of the network don't matter, as long as, when plotted, it clearly shows at least a ...
1
vote
0
answers
128
views
How to ensure that FindClusters and ClusterClassify have the same cluster name?
I am trying to ensure that both the FindCluster and ClusterClassify function provide the same cluster name.
To explain this ...
1
vote
1
answer
58
views
Clustering with different variables
I've created a list of associations composed of userId's and average times for different sessions:
...
2
votes
1
answer
163
views
Gap Statistic Significance Testing with KMeans / KMedoids
Relatively basic question here about FindClusters / ClusteringComponents. So I have noticed that Mathematica has an option for ...
0
votes
3
answers
683
views
TF-IDF matrix question [closed]
I am looking to weight the words (TF-IDF) of a random text by his occurence and showing that on a matrix.
I saw there is a project on it but would like to know if it possible to change the ...
1
vote
0
answers
135
views
Cluster analysis with constraints on number of clusters and their abundance
How to perform cluster analysis in a set:
With the number of clusters bounded but not specified, e.g. $k\in[3,5]$
With a bounded abundance of clusters (the number of elements in each of the clusters),...
0
votes
0
answers
71
views
Homogeneity of a function within a region
I have 2 functions;
funtion 1:
...
8
votes
2
answers
270
views
Determining the Method option that FindClusters uses with AbsoluteOptions
I am trying to determine which method mathematica chooses when using FindClusters. The documentation says that it chooses the best one for the data. I have tried to use ...
1
vote
0
answers
125
views
K-medians clustering computation
Is there a built-in function for data clustering using k-medians algorithm? I found out about the ClusterDissimilarityFunction of the ...
0
votes
1
answer
192
views
map cellular automaton to planar surface
Im exploring possibility to apply a CA to a portion of a region in an image.
Think that I can process an image to identify a region, as an example, a green area.
I would like to confine that area, and ...
2
votes
1
answer
332
views
Programming a DBSCAN in Mathematica
FindClusters has a built-in Method called "DBSCAN". You can find it on this page:
https://...
2
votes
1
answer
268
views
Adjacency Matrix to Clusters of Equal Sizes
I have a system with 72 nodes.
I have a binary adjacency matrix $S$ of size $72\times 72$. If $S_{i,j}=1$, then node $i$ is adjacent to node $j$. So, we also have $S_{i,j}=S{j,i}$. So, $S$ is a ...
0
votes
1
answer
159
views
How to find clusters with same cluster sizes?
I have a set of 71 data points. Each data point is represented by its latitude and longitude. I want to divide them into 12 clusters. The first 11 cluster will have exactly 6 points each and 12th ...
2
votes
2
answers
205
views
How to form multiple clusters of given size from a set of points?
Let us consider a 2 dimensional space. There are 100 points in it. So, each point has its $x$ and $y$ coordinates. I want to form 10 clusters. Each cluster has 10 points.
How can I form such ...
1
vote
1
answer
121
views
Using Density Histogram on FindCluster
I have some data which I want to put in a DensityHistogram after i have clustered
it. The different clusters should have different colors and based on how many are ...
6
votes
1
answer
336
views
How do we cluster separate curves in a set of data?
Below, I have included some data. (It is long, but I don't like to host data elsewhere and provide links that might some day be broken.)
Plotting this set of data,...