Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation question regarding N_d and N_a #21

Open
mbernico opened this issue Jul 22, 2021 · 3 comments
Open

Documentation question regarding N_d and N_a #21

mbernico opened this issue Jul 22, 2021 · 3 comments

Comments

@mbernico
Copy link

In the TabNet docstring it says

"""
- Adjustment of the values of Nd and Na is the most efficient way of obtaining a trade-off
between performance and complexity. Nd = Na is a reasonable choice for most datasets.
"""

However tabnet line 128 is:

"""
if feature_dim <= output_dim:
raise ValueError("To compute features_for_coef, feature_dim must be larger than output dim")
"""

Wondering if this input validation is in error, or if documentation should be adjusted. Happy to PR the fix, I just don't know which way it should go.

@titu1994
Copy link
Owner

The assertion is required otherwise tensor flow will index 0dim tensors. The doc can be updated in a pr

@mbernico
Copy link
Author

Got it, okay, will do.

@Kipkull
Copy link

Kipkull commented Apr 25, 2023

move this line 170 in tabnet.py: features_for_coef = transform_f4[:, self.output_dim:]
into "if" of line 172, would save the 0dim problem

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

No branches or pull requests

3 participants