Skip to content

Commit

Permalink
Added documentation for plotting options
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffrey-hokanson committed Apr 1, 2019
1 parent 51ddec3 commit 9eb0024
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions psdr/lipschitz.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ def bounds(self, X, fX, Xtest):

return lb, ub

def bounds_domain(self, X, fX, domain, verbose = False, progress = True, tqdm_kwargs = {}, **kwargs):
def bounds_domain(self, X, fX, domain, verbose = False, progress = False, tqdm_kwargs = {}, **kwargs):
r""" Compute the uncertainty for any point inside a domain
Parameters
Expand All @@ -346,6 +346,10 @@ def bounds_domain(self, X, fX, domain, verbose = False, progress = True, tqdm_kw
Array of function values
domain: Domain
Domain on which to find exterma of limits
verbose: bool (default: False)
If True, print the iteration history for the optimization program for each initalization
progress: bool (default: False
If True, show a progress bar for trying different initializations
Returns
-------
Expand Down Expand Up @@ -534,10 +538,10 @@ def grad(self, x):
lip.fit(grads = grads)

dom = BoxDomain(-np.ones(6), np.ones(6))
#dom2 = dom.add_constraints(b.reshape(1,-1), [0])
dom2 = dom.add_constraints(b.reshape(1,-1), [0])
#print(dom2)
#lb, ub = lip.bounds_domain(X, fX, dom2, verbose = True)
lb, ub = lip.bounds_domain(X, fX, dom2, verbose = True)
#print(lb, ub)

lip.shadow_envelope_estimate(dom, X, fX, pgfname = 'test.dat', progress = True, ngrid = 5)
#lip.shadow_envelope_estimate(dom, X, fX, pgfname = 'test.dat', progress = True, ngrid = 5)

0 comments on commit 9eb0024

Please sign in to comment.