What do you want to save?
Add Code snippet
New code examples
-
Python 2022-01-28 22:55:46
hierarchical clustering dendrogram python example
from scipy.cluster.hierarchy import dendrogram, linkage from matplotlib import pyplot as plt linked = linkage(X, 'single') labelList = range(1, 11) plt.figure(figsize=(10, 7)) dendrogram(linked, orientation='top', labels=labelLi... Add solution -
Python 2021-11-11 00:06:17
cdf empírica python
# fit an empirical cdf to a bimodal dataset from matplotlib import pyplot from numpy.random import normal from numpy import hstack from statsmodels.distributions.empirical_distribution import ECDF # generate a sample sample1 = normal(loc=20, scale=5, size... Add solution