Skip to content

fix(inductive): stabilize labels handling for graph runs#29

Merged
melvinbarbaux merged 1 commit intomainfrom
fix/inductive-labels-to-torch
Jan 29, 2026
Merged

fix(inductive): stabilize labels handling for graph runs#29
melvinbarbaux merged 1 commit intomainfrom
fix/inductive-labels-to-torch

Conversation

@melvinbarbaux
Copy link
Copy Markdown
Collaborator

Summary

What does this PR change?

Checklist

  • Tests added or updated
  • CI green
  • Changelog updated
  • Documentation updated

Notes

Anything reviewers should know?

@melvinbarbaux melvinbarbaux self-assigned this Jan 29, 2026
@melvinbarbaux melvinbarbaux merged commit f4465bf into main Jan 29, 2026
9 checks passed
@melvinbarbaux melvinbarbaux deleted the fix/inductive-labels-to-torch branch January 29, 2026 14:41
Copy link
Copy Markdown

@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: 0e08495d52

ℹ️ 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".

Comment on lines 41 to +45
- id: labels.encode
- id: labels.to_torch
params:
device: "auto"
dtype: int64
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Avoid converting raw string labels to torch

The newly added labels.to_torch step consumes raw.y (see modssc/preprocess/steps/labels/to_torch.py) and overwrites the encoded labels from labels.encode. That means any dataset whose raw labels are non-numeric (e.g., OpenML classification labels that come back as strings/objects) will now fail preprocessing with torch.as_tensor(raw.y) instead of using the encoded integer labels, so these runs won’t start. This regression only shows up when raw.y isn’t already numeric; consider converting labels.y to torch instead, or ensure labels are numeric before invoking labels.to_torch in these configs.

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