Coder Social home page Coder Social logo

Comments (5)

danielcohenlive avatar danielcohenlive commented on April 28, 2024 1

@yizhanKT Yes, then you'll still need to run it, and fetch data/complete it as you do for other trials.

from ax.

danielcohenlive avatar danielcohenlive commented on April 28, 2024

Hi @yizhanKT , I think by "user input default parameter value set" you mean what we commonly refer to as the status quo.
I'm trying to figure out if there is a more canonical way to do this, but if you're using the service API tutorial you can always add a status quo to the experiment and manually attach that trial

# attach status quo on experiment creation
ax_client.create_experiment(
    ....
    # substitute your parameters here
    status_quo={"x1": 0.0, "x2": 0.0, "x3": 0.0, "x4": 0.0, "x5": 0.0, "x6": 0.0},
}
# alternatively you can set it later
ax_client.set_status_quo(params={"x1": 0.0, "x2": 0.0, "x3": 0.0, "x4": 0.0, "x5": 0.0, "x6": 0.0})
# you can then manually create the status quo trial and evaluate it
parameters, trial_index = ax_client.attach_trial(
   parameters=ax_client.status_quo,
   # it's probably the status quo
   arm_name="status_quo",
)
ax_client.complete_trial(trial_index=trial_index, raw_data=evaluate(parameters))
# then continue with the code already in the tutorial to get trials from the generation strategy
for i in range(25):
    parameters, trial_index = ax_client.get_next_trial()
    # Local evaluation here can be replaced with deployment to external system.
    ax_client.complete_trial(trial_index=trial_index, raw_data=evaluate(parameters))

from ax.

yizhanKT avatar yizhanKT commented on April 28, 2024

@danielcohenlive Thank you for your reply! yes, the status quo arm is the exact function I was looking for. Just want to confirm, as I am currently using develop API, in this case, I shall just append an Arm to the AX experiment as the following?

 # If only one arm should be evaluated
experiment.new_trial().add_arm(Arm(parameters={"x1": 0.0, "x2": 0.0, "x3": 0.0, "x4": 0.0, "x5": 0.0, "x6": 0.0},  name="status_quo"))

from ax.

yizhanKT avatar yizhanKT commented on April 28, 2024

Got it, thank you!

from ax.

danielcohenlive avatar danielcohenlive commented on April 28, 2024

I'm closing this issue, but feel to reopen or open a new one if you have further questions

from ax.

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.