Skip to content

Q: How to add Regularizer and Constraint effect correctly to a weight/bias variable or activity? #532

Open

Description

@Dong148

How to add Regularizer and Constraint effect correctly to a weight/bias variable or activity?

THANKS FOR HELP

Activity

  1. Craigacp commented on Apr 1, 2024

    @Craigacp
    Collaborator

    You can add a regularization term the way you usually would, put an l2 penalty on the weights being large and add that to the loss function that you backprop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions