Giter VIP home page Giter VIP logo

Comments (4)

Deathn0t avatar Deathn0t commented on September 28, 2024

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.

theSubsurfaceGuy avatar theSubsurfaceGuy commented on September 28, 2024

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.

Deathn0t avatar Deathn0t commented on September 28, 2024

@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)

Screenshot 2023-06-13 at 20 02 08

from deephyper.

theSubsurfaceGuy avatar theSubsurfaceGuy commented on September 28, 2024

@Deathn0t thank you very much, I appreciate it.

from deephyper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.