-
Notifications
You must be signed in to change notification settings - Fork 0
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
PowerTarget device #3
Conversation
num_nodes: int | ||
terminal: NDArray | ||
target_power: NDArray = field(converter=make_dynamic) | ||
norm_order: int = field(default=2) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're allowing the user to set the norm order to determine the penalty function, but in the ADMM proximal update we are hard-coding the update for the L2 norm squared right? That might be an issue if someone expects that they can change this to an L1 norm or something for example
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch. I now restrict the norm to be either L1 or L2 and added different prox updates for each one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@asreek6654 Take a quick peek if you can.