Softanza
StartFrançais
Softanza
The library documents itself · NLP & linguistics

stzKMeans

9 own methods · 0 forms written with extensions, listed under their method

the source: base/learning/stzKMeans.ring(opens in a new tab) · All classes · The area reference: NLP & linguistics

Under each method, its extensions (Q CS XT Z ZZ IB W U): bold and ticked, it exists; struck, it does not. The extensions and what they mean

Examples: 0 come from the library's tests; 2 were composed from each method's signature and run for this page, on a fresh object, for example o1 = new stzKMeans([ [1,1], [1,1], [1,1] ]). 7 methods have none yet. Examples run on 2026-10-03 12:54 inside the library at commit 0e72e2e2c.

Method
Explanation, as the source carries it
init
(no comment in the source: the name reads as a sentence) initno extension
(no comment in the source: the name reads as a sentence) set k 1 examples runno extension
(no comment in the source: the name reads as a sentence) run 1 examples runno extension
Clusters
one pass over the assignments, not one per cluster: k scans of n were 1.28 M steps at 20,000 points into 64 (256 ms); one scan is 20,000no extension
Centroids
(no comment in the source: the name reads as a sentence) centroidsno extension
(no comment in the source: the name reads as a sentence) cluster of 1 examples runno extension
Inertia
total within-cluster squared distance -- the quality number, computed by the engine at the end of the run over the same distance (cluster.zig)
composed example
o1 = new stzKMeans([ [1,1], [1,1], [1,1] ])
? o1.Inertia()
#--> 0
composed from the signature, run for this page
no extension
Iterations
(no comment in the source: the name reads as a sentence) iterations
composed example
o1 = new stzKMeans([ [1,1], [1,1], [1,1] ])
? o1.Iterations()
#--> 0
composed from the signature, run for this page
no extension
Why
(no comment in the source: the name reads as a sentence) whyno extension