-
-
Notifications
You must be signed in to change notification settings - Fork 161
Closed
Description
Describe the bug
https://github.com/manujosephv/pytorch_tabular/blob/da20ed3b26c5464bffdec50ffc8bc2005ae41d65/src/pytorch_tabular/tabular_datamodule.py#L297
It seems that when getting the nuniquevalues, pandas is returning a series instead of an int
To reproduce:
I think this should suffice? I can send the whole notebook as well.
data_config = DataConfig(
target=["AttackEncoded"],
continuous_cols=continous_cols,
categorical_cols=categorical_cols,
)
optimizer_config = OptimizerConfig()
model_config = CategoryEmbeddingModelConfig(
task="classification",
layers="42-36-20", # Number of nodes in each layer
activation="LeakyReLU", # Activation between each layers
learning_rate=1e-3,
)
tabular_model = TabularModel(
data_config=data_config,
model_config=model_config,
optimizer_config=optimizer_config,
trainer_config=trainer_config,
verbose=True
)
tabular_model.fit(train=df_train, validation=df_test) #error occurs herePlease let me know if you need anything more to reproduce this.
Metadata
Metadata
Assignees
Labels
No labels