I am interested in Hierarchical Clustering Using Mutual Information. Asking the ChatGpt, I got this:
# Install and load the "mclust" package
install.packages("mclust")
library(mclust)
# Generate some example data
set.seed(1)
data <- matrix(rnorm(100), ncol = 2)
# Perform mutual information clustering using mclust
result <- Mclust(data, G = 2, method = "MICLUST")
# Get the cluster assignment for each data point
clusters <- result$classification
# Print the cluster assignment
print(clusters)
This confused me; there is no "MICLUST" method available in the mclust
package, but the code is still working and provides me with a result. Do you know how I can manually use the mutual information for clustering purposes? there is a hclust
package in R for hierarchical clustering. Can I modify the similarity function and use a mutual information matrix instead?
mclust
uses the default method (becauseMICLUST
does not exist) or that it simply ignores keyword argumentmethod
, because the function does not have such an argument. This is not unusual when using ChatGPT - googling for clustering using mutual information in R may produce more reliable results. $\endgroup$hclust
function. But I don't know if that is correct. $\endgroup$