mirror of
https://github.com/muesli/kmeans.git
synced 2025-10-30 02:11:52 +08:00
Prefix plot filename with current k
This commit is contained in:
@@ -85,7 +85,7 @@ func (p SimplePlotter) Plot(cc clusters.Clusters, iteration int) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
err = ioutil.WriteFile(fmt.Sprintf("%d.png", iteration), buffer.Bytes(), 0644)
|
err = ioutil.WriteFile(fmt.Sprintf("%d_%d.png", len(cc), iteration), buffer.Bytes(), 0644)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user