Skip to content

Support OrdinalEncoder and unknown categorical values - #117

Merged
meilame-tayebjee merged 3 commits into
mainfrom
claude/issue-112-20261124-1336
Nov 24, 2026
Merged

meilame-tayebjee merged 3 commits into
mainfrom
claude/issue-112-20261124-1336

Conversation

@micedre

@micedre micedre commented Nov 24, 2026

Copy link
Copy Markdown
Collaborator

Adds OrdinalEncoder support and an opt-in handle_unknown option to ValueEncoder. Unknown or missing categorical values map to an extra embedding index.

Refs #112

Generated with Claude Code

Co-authored-by: Cédric Couralet <243027+micedre@users.noreply.github.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@claude

claude Bot commented Nov 24, 2026

Copy link
Copy Markdown

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

@meilame-tayebjee

Copy link
Copy Markdown
Member

@claude can you also update the documentation based on this new feature please

@claude

claude Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Claude finished @meilame-tayebjee's task in 22s —— View job


Documentation updated

  • Read the PR changes and find the docs that mention ValueEncoder
  • Update docs/source/architecture/overview.md: added OrdinalEncoder as Option C, and a new "Handling Unknown Categorical Values" section covering handle_unknown=True and the extra slot in vocabulary_sizes
  • Update docs/source/tutorials/mixed_features.md: added OrdinalEncoder usage (2D reshape, features only) and the unknown-category behaviour
  • Commit and push to this branch (08a09f6)

I didn't build the docs or run any tests, since the changes are Markdown only. The README mentions ValueEncoder but I left it unchanged.
· branch claude/issue-112-20261124-1336

Co-authored-by: Meilame Tayebjee <114609737+meilame-tayebjee@users.noreply.github.com>

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@meilame-tayebjee

Copy link
Copy Markdown
Member

@claude why is the Claude Code Review action failing ? fix pls

@claude

claude Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Claude finished @meilame-tayebjee's task in 15s —— View job


Why Claude Code Review is failing

The job fails at the action's actor check:

Action failed with error: Workflow initiated by non-human actor: claude (type: Bot).
Add bot to allowed_bots list or use '*' to allow all bots.

My earlier docs commit (08a09f6) was pushed by the claude[bot] app. That push triggered the pull_request: synchronize event, so the bot became the workflow actor. claude-code-action rejects bot actors unless they are allow-listed. This is not a problem with the PR code.

Fix (needs a manual edit)

I can't change files under .github/workflows/ because the GitHub App has no permission to modify workflows. Please add one line to .github/workflows/claude-code-review.yml, in the with: block at line 38:

        with:
          claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
          allowed_bots: 'claude'

Use allowed_bots: '*' to allow all bots. I haven't run the workflow with this change, so it's untested.

Alternatively, re-run the job after a human pushes a commit. Any commit I push will hit the same error.
· branch claude/issue-112-20261124-1336

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
@meilame-tayebjee
meilame-tayebjee merged commit c14477e into main Nov 24, 2026
6 checks passed
@meilame-tayebjee
meilame-tayebjee deleted the claude/issue-112-20261124-1336 branch November 24, 2026 14:30
@meilame-tayebjee meilame-tayebjee linked an issue Nov 24, 2026 that may be closed by this pull request
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.

Allow unknow value for categorial variabels

2 participants