We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9e44a47 + 0a61b0b commit 2dadf53Copy full SHA for 2dadf53
python/demo_quad.py
@@ -29,15 +29,16 @@
29
def testfunc(Xin):
30
total = 5.0
31
for value in Xin:
32
- total = total + (value - 0.33)*(value-0.33)
+ total = total + (value -0.33)*(value-0.33)
33
34
return total
35
36
# Class for OO testing.
37
class BayesOptTest(BayesOptContinuous):
38
def evaluateSample(self,Xin):
39
return testfunc(Xin)
40
-
+
41
42
# Let's define the parameters
43
# For different options: see parameters.h and cpp
44
# If a parameter is not define, it will be automatically set
@@ -60,7 +61,6 @@ def evaluateSample(self,Xin):
60
61
print "Running time:", clock() - start, "seconds"
62
raw_input('Press INTRO to continue')
63
64
print "OO implementation"
65
bo_test = BayesOptTest(n)
66
bo_test.parameters = params
0 commit comments