Skip to content

Conversation

@brunopjacob
Copy link
Collaborator

Adding example of multi-fidelity KANs

@drgona drgona requested review from RBirmiwal and drgona October 17, 2024 19:36
@brunopjacob
Copy link
Collaborator Author

brunopjacob commented Dec 4, 2024

@drgona @RBirmiwal please take a look and let me know if this looks good! If yes, we are good to merge. Thank you!

p.s.: the main thing to review here is the p3 KAN notebook.

alpha_loss = node.callable.get_alpha_loss()
output[self.train_metric] += alpha_loss

for node in self.model.nodes:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the motivation to modify the trainer itself to include this KAN regularization loss?
This does not seem very modular solution. We can simply instantiate the regularization loss as a separate loss term during problem formulation rather than handling it internally via trainer.

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.

3 participants