Comments (4)
Hello @theSubsurfaceGuy , the description and screenshot is great. Could you please copy/paste the code from the screenshot so that I do not need to rewrite it? Thank you.
from deephyper.
Hello @Deathn0t, here is the code
from deephyper.problem import HpProblem
from deephyper.evaluator import Evaluator
from deephyper.search.hps import CBO
def objective(hyperparameters):
x = hyperparameters["x"]
return (x-5)**2
problem = HpProblem()
problem.add_hyperparameter((1, 10), "x")
evaluator = Evaluator.create(objective, method="process")
search = CBO(problem=problem, evaluator=evaluator, surrogate_model='GP', random_state=42)
results = search.search(max_evals=50)
from deephyper.
@theSubsurfaceGuy I fixed it here: 3a41ac1
You can check out the latest commit from the develop
branch, which should be fixed.
Also, DeepHyper performs MAXIMIZATION so if you want to minimize you should return the negative of your true objective.
The results I obtained after using -(x-5)**2
(converging to x=5
)
from deephyper.
@Deathn0t thank you very much, I appreciate it.
from deephyper.
Related Issues (20)
- [FEATURE] Handling of failures for MOO HOT 1
- [FEATURE] Checkpoint/Restart with fit_surrogate for MOO
- [FEATURE] add "pareto_efficient" boolean to result data frame of search HOT 1
- [FAQ] Direct Saving of Model with Best Weights and Biases HOT 2
- [DOC] RedisJSON Spack installation HOT 2
- [BUG] Multi-Objective Optimization - 101 - Error when loading the benchmark HOT 1
- [FEATURE] profile decorator should measure memory consumption HOT 1
- [OPT] Vectorise multi-objective scalarization functions
- [FEATURE] NAS search should collect metadata of trained neural networks
- [BUG] mpicomm KeyError:0 bug on ALCF Polaris after slingshot upgrade HOT 2
- [FEATURE] Parallel Coordinates Plots for Hyperparameter optimization results
- [BUG] UnboundLocalError: local variable 'max_features' referenced before assignment
- [DOC] Grid search with CBO HOT 2
- [Bug] Deprecated max_features="auto" in RandomForestRegressor causes UnboundLocalError in sklearn versions >=1.3 HOT 1
- [BUG] CBO fails when Multi-Objective Optimization uses constant liar HOT 1
- [BUG] NAS fails with Keras 3.0 HOT 2
- [BUG] why is cython a dependency? HOT 3
- [FAQ] How do I use DeepHyper with a job that requires Python multiprocessing? HOT 1
- [FAQ] Why is jinja2 version locked. HOT 3
- [BUG] Adding warning or exception when Evaluator and Storage types are incompatible HOT 6
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 deephyper.