Skip to content

Commit

Permalink
fix python wrapper.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Jou committed Nov 29, 2018
1 parent 18e9d84 commit d0aa7fd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/osprey/__init__.py
Expand Up @@ -1331,11 +1331,11 @@ def MSKStar(objective, constraints=[], epsilon=useJavaDefault, objectiveWindowSi
return builder.build()

def PartitionFunctionFactory(confSpace, confEcalc, state, confUpperBoundcalc=None):
pfuncFactory = c.kstar.pfunc.PartitionFunctionFactory(confSpace, state)
pfuncFactory = c.kstar.pfunc.PartitionFunctionFactory(confSpace, confEcalc, state)
if confUpperBoundcalc is not None:
pfuncFactory.setUseMARKStar(confUpperBoundcalc,confEcalc)
pfuncFactory.setUseMARKStar(confUpperBoundcalc)
else:
pfuncFactory.setUseGradientDescent(confEcalc)
pfuncFactory.setUseGradientDescent()

return pfuncFactory

Expand Down

0 comments on commit d0aa7fd

Please sign in to comment.