UndefVarError: HierarchicalClustering not defined

Hi @Selly_Shivute, welcome to our discourse.

from a cursory look it seems that there is no module called HierarchicalClustering.
The documentation for Clustering.jl only mentions an hclust function, but I can’t find anything named HierarchicalClustering.
So try just using Clustering in the first line, that might be all you need.


Note: check out the pinned post: (make it easier to help you)
Particularly numbers 2 and 4. It would be much easier to offer help if your code is a self-contained example that looks like this:

# Normalize the matrix along its rows
X_norma = transpose(normalize(transpose(wine)))
# Define the distance metric to use
dist_metric = Euclidean()

self-contained meaning that all everything is previously defined: for example here I’m not sure what kind of variable wine is supposed to be, and I get Euclidean is not defined because I don’t know which package it comes from.

1 Like