Skip to content

Version 0.5.0#17

Merged
sepro merged 11 commits intomainfrom
dev
Feb 25, 2026
Merged

Version 0.5.0#17
sepro merged 11 commits intomainfrom
dev

Conversation

@sepro
Copy link
Member

@sepro sepro commented Feb 25, 2026

Statistics have been added to this version

@sepro sepro merged commit a8690e6 into main Feb 25, 2026
1 check passed
@sepro sepro deleted the dev branch February 25, 2026 10:10
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1beef31012

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

importance_scores.append(importance)

# Track validation and permuted log losses
val_log_loss = log_loss(y_val, lg.predict_proba(X_val), labels=lg.classes_)

Choose a reason for hiding this comment

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

P1 Badge Handle unseen validation classes in log-loss scoring

When a split omits a rare class from y_keep, the fitted classifier’s classes_ no longer covers all labels in y_val; this can happen with the unstratified train_test_split paths in _get_feature_importance. In that case, log_loss(y_val, ..., labels=lg.classes_) raises ValueError (and permutation_importance with scoring="neg_log_loss" can fail similarly), so feature_importance aborts on imbalanced/multiclass datasets instead of returning statistics.

Useful? React with 👍 / 👎.

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.

1 participant