Skip to content

V1.0.x#19

Merged
cpoli merged 16 commits intomasterfrom
v1.0.x
May 6, 2026
Merged

V1.0.x#19
cpoli merged 16 commits intomasterfrom
v1.0.x

Conversation

@cpoli
Copy link
Copy Markdown
Collaborator

@cpoli cpoli commented Apr 30, 2026

Optimize discretizers for performance

shreeeli and others added 16 commits April 30, 2026 20:35
- StandardScaler: handle zero-variance/null columns (ZeroDivisionError fix)
- DropHighNaNRatio: rename threshold= -> max_ratio= in docs and examples
- VarianceFilter: rename threshold= -> min_var= in docs and examples
- CorrelationFilter: rename threshold= -> max_corr= in docs and examples
- Pipeline: use keyword arg steps=[...] instead of positional list in docs and tests
…umns

When a column has equal min and max values (zero range), computing
1.0 / (max - min) raises ZeroDivisionError. Apply the same guard
pattern used in StandardScaler: set scale to 0.0 for constant or
all-null columns instead of dividing by zero.
Format with black minmax_scalaer
@cpoli cpoli requested a review from shreeeli May 5, 2026 16:16
@shreeeli shreeeli self-assigned this May 5, 2026
Copy link
Copy Markdown
Collaborator

@shreeeli shreeeli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cpoli cpoli merged commit 02b8ad0 into master May 6, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants