haifengl / smile

Statistical Machine Intelligence & Learning Engine
https://haifengl.github.io
Other
5.99k stars 1.12k forks source link

documents not fit version 2.6.0 #678

Closed bingyunxl closed 3 years ago

bingyunxl commented 3 years ago
import smile.clustering.*;
import smile.clustering.linkage.*;

var x = Read.csv("data/clustering/gaussian/six.txt", CSVFormat.DEFAULT.withDelimiter(' ')).toArray();
var clusters = HierarchicalClustering.fit(CompleteLinkage.of(x));
Dendrogram.plot(clusters.getTree(), clusters.getHeight()).window();

Dendrogram hasn't plot function

haifengl commented 3 years ago
Dendrogram plot = new Dendrogram(clusters.getTree(), clusters.getHeight());
plot.canvas().window();