SShortSingh.
Back to feed

Batched BIRCH Clusters Embedding Vectors in Waves Using NumPy

0
·2 views

A new NumPy-based library called Batched BIRCH offers an incremental clustering method that processes groups of observations together rather than one at a time. It scores each incoming wave against a fixed snapshot of existing groups, selecting candidates and applying similarity, dispersion, and capacity constraints before merging results. The approach uses vectorized matrix operations and optional parallel scoring, and stores numerically stable clustering statistics. In controlled benchmarks on 100,000 synthetic 384-dimensional vectors, it fit in 43.6 seconds, compared with 211.1 seconds for scikit-learn's BIRCH. The implementation is released under the Apache-2.0 license and is available on PyPI and GitHub.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Designing Clean Human Handoffs for AI Phone Agents: A Practical Checklist

The author argues that the success of AI voice agents depends less on what they can handle and more on how they hand calls to humans. Escalation triggers should be written down explicitly rather than left to the model's judgment, including requests for a person, upset callers, out-of-scope topics like legal or billing disputes, emergencies, and low confidence. Handoffs should go to a specific live person during business hours, or come with a confirmed callback after hours, and the human should receive a short summary so customers don't have to repeat themselves. Agents should never invent prices, approvals, availability, or policies, and teams should review escalated and sampled non-escalated calls to refine the rules. Tracking escalation volume, wait times, and resulting bookings or resolutions helps determine whether the handoff process is working.

0
ProgrammingDEV Community ·

How to Tell a Backrun from a Sandwich Attack on Etherscan

A DEV Community piece from MEV DAO Research explains how to distinguish a sandwich attack from a backrun when an unexpected transaction appears beside a swap in the same block. A sandwich bot sits on both sides of a trade and worsens the fill, while a backrun only trades after the swap and leaves the user's output unchanged. The article walks readers through checking neighbouring transactions on Etherscan, noting the pair, direction and whether the same bot appears on both sides. It recommends tighter slippage settings, private RPCs such as Flashbots Protect or MEV Blocker, and intent-based DEXs like CoW Swap or UniswapX for larger trades. It also notes that backrun bids on private-RPC flow can sometimes be partly refunded to the user.

0
ProgrammingDEV Community ·

Mitel MiCollab CVE-2026-133275: Incident Response Steps for Suspected Unauthenticated File Upload

Alerts about CVE-2026-133275, an unauthenticated arbitrary file upload flaw in the AWV component of Mitel MiCollab servers, can come from scanners, KEV-driven reports, or analysts spotting unusual uploads. Mitel classifies the issue as CWE-434 with a CVSS 3.1 score of 5.3, and CISA added it to its KEV catalog on November 25, 2026. The guidance stresses that an alert alone does not confirm a compromise, so responders should first preserve the request records, uploaded file, hashes, and relevant logs before any cleanup. Containment includes restricting external access to AWV as Mitel recommends when patching cannot happen immediately, while keeping the service owner informed. Investigators are advised to build a timeline of possible execution, review accounts and reachable systems, and not assume safety because the upload appears harmless, then patch to 10.3.0.18 or a later release.

0
ProgrammingDEV Community ·

Cloudflare Leads Tech Stacks of Indie Products on Shipfolio, Data Shows

Shipfolio, a platform where indie products publicly list their tools, has published a ranking of the technologies used across its catalog. Cloudflare is the most common hosting choice, appearing in 21 products, well ahead of other options. Next.js and Vercel remain popular, but products also rely on ASP.NET Core, Flutter, Astro and Google Cloud. The platform also verifies revenue from payment providers, with one product showing $15 per month confirmed through Stripe. The findings suggest founders favor lean, practical stacks over whatever is most heavily covered in tutorials.