Skip to content

Commit

Permalink
Merge pull request #69 from LuoXueling/dev-xlluo
Browse files Browse the repository at this point in the history
Fix some bugs
  • Loading branch information
LuoXueling authored Sep 25, 2024
2 parents 5592410 + fd48897 commit 9774575
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions tabensemb/model/_autogluon/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .multilabel import *
1 change: 1 addition & 0 deletions tabensemb/model/_pytorch_tabular/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .mute_track import *
2 changes: 2 additions & 0 deletions tabensemb/model/_sample/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from .cat_embed import *
from .require_model import *
1 change: 1 addition & 0 deletions tabensemb/model/_widedeep/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .widedeep_callback import *
8 changes: 7 additions & 1 deletion tabensemb/model/pytorch_tabular.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
from .base import PytorchLightningLossCallback
from .base import AbstractWrapper
from typing import Dict, Any
from packaging import version
from torch import nn
import re
import inspect
Expand All @@ -26,6 +27,7 @@ def _new_model(self, model_name, verbose, **kwargs):
mute_track()

from functools import partialmethod
import pytorch_tabular
from pytorch_tabular.config import ExperimentRunManager

erm_original_init = ExperimentRunManager.__init__
Expand Down Expand Up @@ -105,7 +107,11 @@ def _new_model(self, model_name, verbose, **kwargs):
"GATE": GatedAdditiveTreeEnsembleConfig,
}
special_configs = {
"NODE": {"embed_categorical": True},
"NODE": (
{"embed_categorical": True}
if version.parse(pytorch_tabular.__version__) < version.parse("1.1.0")
else {}
),
}
legal_kwargs = {
key: value
Expand Down
1 change: 1 addition & 0 deletions tabensemb/utils/imputers/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .gain import *
1 change: 1 addition & 0 deletions tabensemb/utils/processors/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .rfecv import *

0 comments on commit 9774575

Please sign in to comment.