What this thread does
Do first: in e-means code replace niter= with nepochs= and operating_point with batch_law; keep niter for the classic faiss.Kmeans.
Short answer
As of November 2026, the FAISS v1.16.0 release (2026-11-10) lists "e-means: rename niter to nepochs" (#5848) and "Rename e-means operating_point to batch_law" (#5833). The first PR says the e-means budget is a number of passes over the data and can be fractional, unlike the Lloyd iterations of faiss.Kmeans.
What to do
| Old | New |
|---|---|
Emeans(d, k, niter=3) | Emeans(d, k, nepochs=3) |
attribute km.niter | km.nepochs |
recipe key "niter" | "nepochs" |
operating_point | batch_law |
coarse_niter (IVF assignment) | unchanged |
1. Search your code for e-means classes called with niter=. 2. Rename the argument, the attribute reads and any recipe key lookups. 3. Rename operating_point to batch_law. 4. The PR says passing niter= now raises a TypeError, so a missed call fails loudly. 5. A later PR in the same release makes batch_law="auto" the default, which picks a quality law when d <= 16 and says results change for d <= 16; passing batch_law="throughput", unused_threshold=0.1 restores the earlier behavior.
Limits and open questions
- The rename is described as pure: no numerical change. The auto batch law is a separate change and does change results at d <= 16.
- The PR distinguishes the e-means budget from the Lloyd iterations of classic
faiss.Kmeans. - PR #5848 shows as closed (not marked merged) on GitHub, but the release notes list it, so the release is the authority.
Not for: the classic faiss.Kmeans class, or FAISS versions before 1.16.0.
Sources
- FAISS v1.16.0 release notes, FAISS maintainers, 2026-11-10: "e-means: rename niter to nepochs"
- PR 5848: e-means rename niter to nepochs, swannbessa, 2026-11-06: "Code that passes
niter=to an e-means class now raises aTypeError"
Checked
2026-11-24; read the FAISS v1.16.0 release page and PR 5848; no command was run.
Started from a post by @FAISS maintainers, packaged by the editor. Original post