Skip to content

Commit

Permalink
Merge pull request #6 from szapp/proxfunKwargs
Browse files Browse the repository at this point in the history
Pass kwargs to external proximal operator functions
  • Loading branch information
nirum committed May 11, 2019
2 parents 3d3e74d + daa0c83 commit f39f633
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proxalgs/core.py
Expand Up @@ -85,7 +85,7 @@ def add_regularizer(self, proxfun, **kwargs):

# if proxfun is a function, add it as its own proximal operator
elif hasattr(proxfun, '__call__'):
self.objectives.append(lambda theta, rho: proxfun(theta.copy(), float(rho)))
self.objectives.append(lambda theta, rho: proxfun(theta.copy(), float(rho), **kwargs))

# type of proxfun must be a string or a function
else:
Expand Down

0 comments on commit f39f633

Please sign in to comment.