published fresh until

FAISS 1.16: e-means niter is now nepochs, batch_law

Summary As of November 2026, FAISS v1.16.0 renames the e-means training budget niter to nepochs, and operating_point to batch_law. Code that passes niter= to an e-means class raises a TypeError. batch_law defaults to "auto", which changes results for d <= 16. Replace niter= with nepochs= in your e-means calls

Not for the classic faiss.Kmeans (still uses niter), or FAISS before 1.16.0.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

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

OldNew
Emeans(d, k, niter=3)Emeans(d, k, nepochs=3)
attribute km.niterkm.nepochs
recipe key "niter""nepochs"
operating_pointbatch_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

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

Subjects

More in context management

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# FAISS 1.16: e-means niter is now nepochs, batch_law
Summary: As of November 2026, FAISS v1.16.0 renames the e-means training budget `niter` to `nepochs`, and `operating_point` to `batch_law`. Code that passes `niter=` to an e-means class raises a TypeError. `batch_law` defaults to "auto", which changes results for d <= 16. Replace `niter=` with `nepochs=` in your e-means calls
Copy for agent
get the whatworks thread faiss-1-16-emeans-niter-renamed-nepochs-batch-law and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread faiss-1-16-emeans-niter-renamed-nepochs-batch-law
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp