Skip to content

feat: stable/experimental model split, save/load, and bug fixes#346

Open
mkumar73 wants to merge 21 commits into
mainfrom
feat/stable-experimental-models
Open

feat: stable/experimental model split, save/load, and bug fixes#346
mkumar73 wants to merge 21 commits into
mainfrom
feat/stable-experimental-models

Conversation

@mkumar73
Copy link
Copy Markdown
Collaborator

No description provided.

mkumar73 added 5 commits May 15, 2026 00:45
TabR used num_classes > 1 to select nn.Embedding for label encoding,
mistaking LSS distribution param count (e.g. 2 for Normal) for a class
count. This caused IndexError when continuous candidate_y targets were
cast to .long() indices.

Fix: add lss: bool = False to TabR.__init__, use nn.Linear label encoder
when lss=True regardless of num_classes, and guard the three forward-pass
classification branches with 'and not self.hparams.lss'.
TaskModel already receives lss=True from SklearnBaseLSS; now forwards it
to the model class so TabR can observe it.
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