python

730 bookmarks · page 1 of 15
2026-06-12 · kdnuggets.com

3 NumPy Tricks for Numerical Performance - KDnuggets

In this article, we will cover three essential NumPy tricks to optimize your code: vectorization and broadcasting, in-place operations, and leveraging memory views instead of copies.

To optimize, you must write code using native universal functions (ufuncs) and broadcasting.
When working with very large arrays (e.g. millions of entries), allocating and garbage-collecting these temporary intermediate arrays creates substantial overhead.
2026-06-01 · kdnuggets.com

5 Must-Know Python Concepts for Data Scientists - KDnuggets

In this article, we will dive deep into five must-know Python concepts that will help you transition from writing clunky, slow spaghetti code to constructing lightning-fast, production-grade, and beautifully functional data pipelines.

2026-03-23 · marktechpost.com

How BM25 and RAG Retrieve Information Differently? - MarkTechPost

When you type a query into a search engine, something has to decide which documents are actually relevant — and how to rank them. BM25 (Best Matching 25), the algorithm powering search engines like Elasticsearch and Lucene, has been the dominant answer to that question for…

The clever part is that BM25 doesn’t reward keyword stuffing
saturation
2026-03-23 · simonwillison.net

Research: Starlette 1.0 skill

Starlette 1.0 Skill offers a concise guide for building robust web applications with Starlette, a lightweight ASGI framework. The accompanying demo showcases a task management app featuring projects, tasks, comments, …

2026-03-15 · cemrehancavdar.com

The Optimization Ladder

Python loses every public benchmark by 21-875x. I took the exact problems people use to dunk on Python and climbed every rung of the optimization ladder -- from CPython version upgrades to Rust. Real numbers, real code, real effort costs.

2026-03-14 · linuxize.com

Python Cheatsheet

Quick reference for Python 3 syntax, data types, string and list methods, control flow, functions, file I/O, and exception handling.

2026-01-07 · marktechpost.com

Implementing Softmax From Scratch: Avoiding the Numerical Stability Trap - MarkTechPost

Learn about implementing Softmax from scratch and discover how to avoid the numerical stability trap in deep learning projects.

This function implements the Softmax activation in its most straightforward form.
numerically unstable—large positive logits can cause overflow, and large negative logits can underflow to zero. As a result, this version should be avoided in real training pipelines
2025-12-27 · nesbitt.io

How uv got so fast

uv’s speed comes from engineering decisions, not just Rust. Static metadata, dropping legacy formats, and standards that didn’t exist five years ago.

2025-12-03 · medium.com

Creating PDF Reports with Python

Creating PDF Reports with Python Introduction Generating PDF reports programmatically can be incredibly useful for automating document creation, especially in a business context. Python offers …