python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
how to get automaticaly the number of colors and the colors returned from a dendrogram clustering hierarchy?
scikit-learn gives an example of python code to generate a dendogram. I copy/paste this code bellow. This code generates a dendogram. This dendogram display 3 differents colors: blue, green, and orang...
an ch
Votes: 0
Answers: 1
Error in .rect_dendrogram(dend, k = k, palette = rect_border, rect_fill = rect_fill, : k must be between 2 and 97
I am trying to estimate a cluster dendrogram in R for a structural topic model I produced with 98 topics.
I first ran the following which worked well:
res.hc <- eclust(scale(out_corr$cor), "hc...
md_14
Votes: 0
Answers: 1
The attribute 'children_' of Agglomerative clustering
I am writing a very basic program with observations not exceeding 20 values (X1 is the original dateset).
X1_test=X1_df.iloc[0:20,]
from sklearn.cluster import AgglomerativeClustering
ag= Agglomerati...
Ashish Gupta
Votes: 0
Answers: 1
How to filter redundant features using shap.utils.hclust not only by visual inspection barplot?
I'm using shap.utils.hclust to figure out which features are redundant and following the documentation
Reproducible example:
import pandas as pd
import numpy as np
import shap
from sklearn.model_sele...
Multivac
Votes: 0
Answers: 1