MCPcopy Create free account
hub / github.com/Kaggle/docker-python / black_box_function

Function black_box_function

tests/test_bayes_opt.py:25–32  ·  view source on GitHub ↗

Function with unknown internals we wish to maximize. This is just serving as an example, for all intents and purposes think of the internals of this function, i.e.: the process which generates its output values, as unknown.

(x, y)

Source from the content-addressed store, hash-verified

23
24
25def black_box_function(x, y):
26 """Function with unknown internals we wish to maximize.
27
28 This is just serving as an example, for all intents and
29 purposes think of the internals of this function, i.e.: the process
30 which generates its output values, as unknown.
31 """
32 return -x ** 2 - (y - 1) ** 2 + 1

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected