Skip to content

Commit 2dadf53

Browse files
committed
Merging
2 parents 9e44a47 + 0a61b0b commit 2dadf53

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

python/demo_quad.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,16 @@
2929
def testfunc(Xin):
3030
total = 5.0
3131
for value in Xin:
32-
total = total + (value - 0.33)*(value-0.33)
32+
total = total + (value -0.33)*(value-0.33)
3333

3434
return total
3535

3636
# Class for OO testing.
3737
class BayesOptTest(BayesOptContinuous):
3838
def evaluateSample(self,Xin):
3939
return testfunc(Xin)
40-
40+
41+
4142
# Let's define the parameters
4243
# For different options: see parameters.h and cpp
4344
# If a parameter is not define, it will be automatically set
@@ -60,7 +61,6 @@ def evaluateSample(self,Xin):
6061
print "Running time:", clock() - start, "seconds"
6162
raw_input('Press INTRO to continue')
6263

63-
6464
print "OO implementation"
6565
bo_test = BayesOptTest(n)
6666
bo_test.parameters = params

0 commit comments

Comments
 (0)