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

Access SC parameters within a custom loss? #152

Open
jmsull opened this issue Aug 18, 2023 · 0 comments
Open

Access SC parameters within a custom loss? #152

jmsull opened this issue Aug 18, 2023 · 0 comments

Comments

@jmsull
Copy link

jmsull commented Aug 18, 2023

So I realize this is likely a niche use case, but is it possible to construct a custom loss where inside that loss function, I can access the current value of the simple chain parameters, and even call the simple chain itself?

In principle, I don't see why this shouldn't work(?), but the custom losses seem to be defined only to take the output of the previous layer as arguments.

With the L1/L2Penalty functions, it seems like accessing parameters within the loss can be made to work, but can the simplechain itself be called using these parameters?

@jmsull jmsull changed the title Access NN parameters within a custom loss? Access SC parameters within a custom loss? Aug 18, 2023
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