Skip to content

Feature/sample weight support#17

Merged
BabaSanfour merged 2 commits into
devfrom
feature/sample-weight-support
Jun 10, 2026
Merged

Feature/sample weight support#17
BabaSanfour merged 2 commits into
devfrom
feature/sample-weight-support

Conversation

@BabaSanfour

Copy link
Copy Markdown
Owner

No description provided.

…peline

Thread optional per-sample weights through Experiment.run() →
_cross_validate() → fit_and_score_fold() → fit_estimator().
Only the training-fold slice reaches the classifier; test samples
are never weighted. Routing uses inspect.signature so classifiers
that don't expose sample_weight in their fit() signature are silently
skipped rather than raising.

Tests verify: weight forwarding, None passthrough, unsupported-clf
safety, train-only slicing, and length-mismatch validation.
@BabaSanfour BabaSanfour changed the base branch from main to dev June 10, 2026 00:00
@BabaSanfour BabaSanfour merged commit 66d223d into dev Jun 10, 2026
2 of 3 checks passed
@BabaSanfour BabaSanfour deleted the feature/sample-weight-support branch June 10, 2026 00:01
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