Comments (2)
Hi @jdmoore7 , you can probably use kwargs in the function definition to achieve the desired result:
def f(**kwargs):
v1 = np.array([kwargs[f'x_{i}'] for i in range(2)])
v2 = np.array([kwargs[f'y_{i}'] for i in range(2)])
return np.dot(v1, v2)
Let me know if this helps.
from pygpgo.
Perfect fix, thanks!
from pygpgo.
Related Issues (20)
- Parameters specified as "int" are returned as floats HOT 7
- Parallelization in GPGO.GPGO returns BrokenProcessPool error HOT 3
- Changing DF/nu parameter from default=3.0 HOT 2
- Add support or documentation for noisy vs. noiseless objective functions HOT 3
- Example covzoo.py needs to import Numpy HOT 1
- SVM optimization with GPGO: objective function not improving after several iterations and different config of acq funct and surrogate model HOT 2
- Missing hyperparameter in matern52 HOT 1
- predictive entropy search without sampling HOT 1
- Improve logger
- leading minor of the array is not positive definite HOT 4
- Notebook jupyter HOT 1
- GP.fit() error when K not PD HOT 2
- Error when running HOT 1
- Does this tool support BO with constrains? HOT 2
- Covariance function bounds being overwritten HOT 1
- test_tSP_opt_nograd is flaky when all seed-setting code is removed HOT 1
- theano and cov.py warnings HOT 4
- [JOSS]: More prose & clearer examples in online docs HOT 7
- [JOSS]: Test coverage HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pygpgo.