Search the archive

14,355 indexed articles, 13,283 of them summarised by us.

Articles
14,355
Research papers
91,965
Models priced
2,249
Providers
163

8 results for “SciPy”

Newest and most relevant first

skfolio: portfolio optimization and risk management built on scikit-learn

Data scientists who already use scikit-learn can now build, cross-validate and stress-test optimized portfolios without learning a separate finance API.

skfolio is a free, open-source Python library for portfolio optimization, deciding how much money to put into each investment, and risk management. It works the same way as scikit-learn, the popular machine-learning toolkit, so people already trained on scikit-learn can use the same commands to build portfolios, tune settings and test how allocations survive market shocks. It affects data scientists and quantitative analysts, though it handles only modeling, not live trading.

skfolio lowers the cost of turning return predictions into actual portfolios by making scikit-learn's workflow apply to portfolio construction. Firms whose data scientists already know scikit-learn can reuse that skill rather than training staff on specialized finance libraries, which most competitors lack cross-validation and tuning support in. It is free under a 3-Clause BSD license, with paid enterprise support via Skfolio Labs. It does not cover data collection, execution or live trading.

skfolio wraps portfolio optimization models in scikit-learn's estimator API (fit, predict, transform), so models plug into cross-validation, grid search and pipeline composition. Dependencies are numpy, scipy, pandas and cvxpy-base for convex optimization, supporting Python 3.10–3.13. It adds built-in stress-testing of allocations under adverse conditions. Limitations: it covers only modeling, no data collection, execution or live-market handling, and no benchmark numbers are given.

GitHub Opensource Projects →

The curated list of quant libraries every Python and R dev should bookmark.

Quant developers in Python or R get one curated index of vetted finance libraries, cutting hours of searching for backtesting, pricing and market data tools.

Awesome Quant is a free, community-maintained list on GitHub that catalogues hundreds of quantitative finance tools for Python and R. Instead of one library, it organises projects into 18 categories, such as backtesting, portfolio optimization and market data, each with links and short descriptions. It helps finance developers and analysts find niche tools quickly, including R packages like data.table and Python staples like pandas. No installation is required; it is simply browsed.

For teams doing financial modelling, this is a reference resource, not a product purchase: a free GitHub list of vetted quant libraries. Its value is reduced research time when selecting backtesting, portfolio or market data tools. There is no vendor, pricing or lock-in, and it still requires evaluating individual libraries. Python and R users both gain; tool vendors benefit from discoverability.

Awesome Quant (github.com/wilsonfreitas/awesome-quant) is a curated directory of quantitative finance resources across 18 categories: numerical libraries, pricing, technical indicators, trading & backtesting, portfolio optimization, factor analysis, time series, market data, calendars, Excel integration and prediction markets. Entries name libraries like numpy, scipy, polars, pymc3, xts, data.table and ArcticDB. It cites CRNG, a market-faithful random number generator claiming 86% real-market metric match versus 14% for NumPy. Curation, not benchmarks, is the value.

GitHub Opensource Projects →

Start Customizing NVIDIA Nemotron 3 Nano with Prime Intellect Lab in Minutes

Fine-tuning a 30B open model now needs a laptop, a Prime Intellect account, and under $5, removing the GPU-cluster barrier to RL customization.

NVIDIA published a tutorial showing how to customize its Nemotron 3 Nano model using a rental service called Prime Intellect Lab, which runs the training on hosted computers so you don't need your own. The task: teach the model to answer math problems using Python tools. On 32 test problems, accuracy went from 21.9% to 90.6% after 100 training steps, costing under $5 total, and the result is a small downloadable add-on file called a LoRA adapter.

NVIDIA demonstrates that customizing its open Nemotron 3 models via hosted reinforcement learning is cheap and fast: under $5 and roughly minutes of setup for a 30B model. The same workflow extends to Nemotron 3 Super and Ultra by changing one config line, though Ultra requires Blackwell-hosted access. The key business point is cost avoidance, adapting a smaller open model may beat paying for a larger general-purpose model. Treat live CLI pricing as the source of truth; the article warns prices change.

The workflow uses Prime Intellect Lab's verifiers stack for RLVR on the primeintellect/math-python environment (numpy, sympy, scipy tools), capped at 5 turns per rollout, with 8 rollouts per task and batch size 32. Nemotron 3 Nano (NVIDIA-Nemotron-3-Nano-30B-A3B-BF16) went from 21.9% to 90.6% accuracy on 32 held-out math problems after 100 steps; 23 of 24 changed prompts improved. Output is a downloadable LoRA adapter deployable via prime deployments for OpenAI-compatible inference. Same config works for Super (120B-A12B) and Ultra (550B-A55B-NVFP4) on Blackwell infrastructure.

NVIDIA Developer Blog →

My SciPy ODE Solver Was Killing My Bayesian Inference: A Cosmologist’s Honest Account of Discovering Diffrax

A cosmologist's account of switching from SciPy's ODE solvers to Diffrax for differentiable, GPU-compatible simulation in Bayesian inference, useful signal for scientists whose solver overhead dominates MCMC runs, though the excerpt omits specifics.

A cosmologist writes about discovering Diffrax, an alternative library for solving differential equations, the maths used to model things changing over time. His SciPy solvers were undermining his Bayesian inference, a statistical method for estimating parameters from data. The article discusses what the switch costs, what it gains, and three mistakes he made. The provided excerpt contains no benchmarks, version numbers or other specifics.

This is a practitioner's experience report: a researcher found that SciPy's ODE solvers were hurting his Bayesian inference workflow and moved to Diffrax, weighing costs against gains and listing three mistakes he made along the way. No pricing, adoption figures, benchmarks or dates appear in the available text, so its decision-making value rests on the qualitative trade-offs alone.

The author compares SciPy's ODE solvers with Diffrax (Patrick Kidger's JAX-based differential equations library) for cosmology pipelines feeding Bayesian inference, where non-differentiable or slow solvers degrade sampling. The post covers costs, gains and three mistakes made in the migration. The excerpt includes no version numbers, benchmark timings or limitation details, those presumably live in the full article body.

Towards Data Science Blog →

Accelerated X-Ray Analysis for Nanoscale Imaging (XANI) of Novel Materials

X-ray scientists can now process experiment-scale datasets in hours instead of months, enabling live experiment steering rather than post-hoc analysis of subsampled data.

NVIDIA released cuPhoton.xRay, software that accelerates analysis of X-ray free-electron laser data, which records ultrafast atomic movements in materials. On 32 NVIDIA GB200 superchips, it processed 42 terabytes in under four hours, a task that took about nine months on CPUs. It also boosts data reading speed by up to 165x. Materials scientists studying batteries, semiconductors and quantum materials benefit, without writing low-level code.

NVIDIA's cuPhoton.xRay workflow compresses X-ray free-electron laser data analysis from roughly nine months on CPUs to under four hours on 32 GB200 Grace Blackwell Superchips, a claimed 1,000x speedup. Facilities like LCLS-II and European XFEL can analyze full datasets in real time instead of subsampling 10% during experiments. Gain accrues to national labs and material-science teams on NVIDIA hardware; the payoff depends on access to GB200-class clusters.

cuPhoton.xRay partitions detector arrays across GPUs via the cuPhoton runtime and tiled_task API, replacing sequential SciPy fitting with a batched GPU Levenberg-Marquardt solver (JAXfit) that fits damped cosine models per pixel. New multithreaded HDF5 plus GPUDirect Storage deliver up to 165x read throughput: 76 GB/s on one node, 700 GB/s across 16 nodes on Lustre. Speedup is 43x on one GB200 GPU, 1,000x on 64 GPUs; scaling plateaus past ~32 superchips as fixed per-tile overhead dominates with 760 fixed tiles.

NVIDIA Developer Blog →

Simplify Sparse Deep Learning with Universal Sparse Tensor in nvmath-python

PyTorch researchers can now run linear layers on novel sparse weight formats without rewriting model code, with large speedups possible on pruned networks.

NVIDIA's nvmath-python, a Python library for fast math on GPUs, added a feature called the Universal Sparse Tensor in version 0.9.0. Sparse tensors store only nonzero values, saving memory when a matrix is mostly empty, such as a neural network after pruning. The new format separates how sparsity is described from how data is laid out, and converts between formats like COO and CSR without copying data. Speedups of 1.1x to 444x were reported over existing tools on one benchmark matrix.

NVIDIA's nvmath-python v0.9.0 lets teams compress mostly-empty weight matrices in deep learning models without restructuring code or rewriting kernels. Benchmarks show up to 444x faster sparse matrix multiplication than CuPy's or PyTorch's native sparse paths on one Matrix Market matrix. The gains depend heavily on sparsity level and format: CSR matched cuSPARSE, and the benefit is largest for DIA and custom formats. Teams using pruned or heavily sparse models gain most; dense workloads see nothing.

Universal Sparse Tensor in nvmath-python v0.9.0 decouples sparsity from memory layout via a runtime DSL (e.g. '(i, j) -> (j: dense, i: compressed)' for CSC), with zero-copy conversion to and from PyTorch, SciPy, CuPy and NumPy across COO, CSR, CSC, BSR, BSC and DIA. Polymorphic matmul() and solve() dispatch to optimized kernels for standard formats or JIT-generate code for custom ones, with planning-phase caching. A torch.Tensor subclass enables UST injection and weight reformatting in linear layers. On the 1,489,752x1,489,752 atmosmodl matrix, UST SpMV ran 1.1x to 444x faster than CuPy and PyTorch; MACKO UST matched or beat the original MACKO CUDA kernel.

NVIDIA Developer Blog →

Implementing the Fourier Transform Numerically in Python: A Step-by-Step Guide

Popular Python tools like NumPy and SciPy might not calculate the Fourier transform exactly as expected. The article teaches how to build it yourself step-by-step. It matters for correctly analyzing waves, sounds, or images in data work.

This article questions the accuracy of NumPy and SciPy's FFT functions in computing the true Fourier transform, urging verification in data pipelines. For business leaders, it highlights risks in signal processing for AI/ML applications and the value of custom implementations. Key takeaway: Prioritize technical validation to ensure reliable analytics and innovation.

Examines potential discrepancies between NumPy/SciPy FFT outputs and exact Fourier transforms. Offers a step-by-step Python guide for numerical Fourier Transform implementation. Focuses on core numerical methods and library behaviors in scientific computing.

Towards Data Science Blog →

LangGraph + SciPy: Building an AI That Reads Documentation and Makes Decisions

This article is about a new AI that can understand technical instructions, like those for statistics, and then automatically pick the correct method for you. It's important because it helps people avoid mistakes and saves a lot of time when working with data, making complex analysis much easier for everyone.

This article introduces an AI system leveraging LangGraph and SciPy to automate statistical test selection by interpreting documentation. For business leaders, this represents a strategic advancement in automating complex analytical tasks, reducing human error, and accelerating data-driven decision-making processes. It highlights AI's potential to streamline expert-level operations.

The article details an AI implementation utilizing LangGraph and SciPy to programmatically read and interpret technical documentation for automated statistical test identification. This approach demonstrates a novel application of AI for intelligent decision support, automating a common data science challenge by integrating language models with scientific computing libraries.

Towards Data Science Blog →