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

MultKAN.reg() got an unexpected keyword argument 'entropy_offset' #489

Open
Akaqox opened this issue Nov 5, 2024 · 1 comment
Open

MultKAN.reg() got an unexpected keyword argument 'entropy_offset' #489

Akaqox opened this issue Nov 5, 2024 · 1 comment

Comments

@Akaqox
Copy link

Akaqox commented Nov 5, 2024

On Physics_2B_conservation_law_2D.ipynb tutorial notebook on the section:
reg_loss = model.reg(lamb_l1=1., entropy_offset=1e-4, lamb_coef=1.)

it says MultKAN.reg() got an unexpected keyword argument 'entropy_offset' and if I am remove this statement and retry as

it says
MultKAN.reg() missing 3 required positional arguments: 'reg_metric', 'lamb_entropy', and 'lamb_coefdiff'

I dont know how to handle these arguments and what is the best values for this tutorial problem.

@Akaqox
Copy link
Author

Akaqox commented Nov 5, 2024

I understand now it means regularization and we can choose between

reg_metric : the regularization metric
'edge_forward_spline_n', 'edge_forward_spline_u', 'edge_forward_sum', 'edge_backward', 'node_backward'
lamb_l1 : float
l1 penalty strength
lamb_entropy : float
entropy penalty strength
lamb_coef : float
coefficient penalty strength
lamb_coefdiff : float
coefficient smoothness strength
I hope that when you are free, you can fix the tutorial.

@Akaqox Akaqox closed this as completed Nov 5, 2024
@Akaqox Akaqox reopened this Nov 5, 2024
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

1 participant