Registry / data / dask-glm

dask-glm

JSON →
library0.4.0pypypiunverified

Generalized Linear Models with Dask. Current version is 0.4.0, with a release cadence approximately yearly. It provides implementations of GLMs (logistic, Poisson, etc.) that work on Dask arrays and DataFrames.

pip install dask-glm
INSTALL
IMPORT
SIG · DASK-GLM
D
dask-glm
datapythonv0.4.0
Install
16.9s avg
Import
Disk
505MB
Pass rate
5/ 10
Env Coverage5 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.4.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
build_error
glibc
py 3.103.95 runs
installs and imports cleanly · install 16.9s · import 0.000s · 494MB
505MB installed
● package 505MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

LogisticRegression
from dask_glm import LogisticRegression
from dask_glm.logistic import LogisticRegression

Quick example: fit a logistic regression model on a Dask array.

import dask.array as da from dask_glm.logistic import LogisticRegression # Create synthetic data np.random.seed(0) X = da.from_array(np.random.randn(1000, 10), chunks=100) y = da.from_array((np.random.rand(1000) > 0.5).astype(int), chunks=100) # Fit logistic regression model = LogisticRegression() coef = model.fit(X, y).coef_ print(coef.compute())
Debug
Known issues
breakingdask-glm 0.4.0 drops support for Python 3.8 and 3.9; requires Python >=3.10.
fix
Upgrade Python to 3.10 or later.
affects: >=0.4.0
deprecatedThe old API using functions like `dask_glm.logistic.fit` is deprecated in favor of the object-oriented API with `LogisticRegression().fit()`.
fix
Use the class-based API: `model = LogisticRegression(); model.fit(X, y).coef_`.
affects: >=0.3.0
gotchaWhen using GPU acceleration with CuPy, ensure CuPy is installed and arrays are cupy-backed Dask arrays. The library does not automatically move data to GPU.
fix
Install cupy and convert Dask arrays to cupy arrays via `.map_blocks(cp.asarray)` before fitting.
affects: all
Upgrade
Version history
0.4.0latest on PyPI · released Jan 23, 2026
Audit
Dependencies
daskrequiredCore dependency for distributed computing and array/DataFrame abstractions
scipyrequiredUsed for optimization routines and linear algebra
numpyrequiredRequired for array operations
cupyoptionalOptional: GPU acceleration for GLM fitting
Agent activity
13 hits · last 30 days
node
12
OpenAI (training)
1
Resources
dask-glm — pip install dask-glm · libregistry