tests/functional/branching/test_branching.py
def init_full_x_half_y(init_full_x_full_y):
    """Change y's prior to full x and full y experiment"""
    name = "full_x_full_y"
    branch = "full_x_half_y"
    orion.core.cli.main(
        (
            "hunt --init-only -n {branch} --branch-from {name} ./black_box_with_y.py "
            "-x~uniform(-10,10) "
            "-y~+uniform(0,10,default_value=1)"
        )
        .format(name=name, branch=branch)
        .split(" ")
    )
    orion.core.cli.main(
        "insert -n {branch} script -x=3 -y=3".format(branch=branch).split(" ")
    )
    orion.core.cli.main(
        "insert -n {branch} script -x=-3 -y=3".format(branch=branch).split(" ")
    )
Change y's prior to full x and full y experiment
Change y's prior to full x and full y experiment
Change y ' s prior to full x and full y experiment
def init_full_x_half_y(init_full_x_full_y):
    name = "full_x_full_y"
    branch = "full_x_half_y"
    orion.core.cli.main(
        (
            "hunt --init-only -n {branch} --branch-from {name} ./black_box_with_y.py "
            "-x~uniform(-10,10) "
            "-y~+uniform(0,10,default_value=1)"
        )
        .format(name=name, branch=branch)
        .split(" ")
    )
    orion.core.cli.main(
        "insert -n {branch} script -x=3 -y=3".format(branch=branch).split(" ")
    )
    orion.core.cli.main(
        "insert -n {branch} script -x=-3 -y=3".format(branch=branch).split(" ")
    )
def init_full_x_half_y ( init_full_x_full_y ) : name = "full_x_full_y" branch = "full_x_half_y" orion . core . cli . main ( ( "hunt --init-only -n {branch} --branch-from {name} ./black_box_with_y.py " "-x~uniform(-10,10) " "-y~+uniform(0,10,default_value=1)" ) . format ( name = name , branch = branch ) . split ( " " ) ) orion . core . cli . main ( "insert -n {branch} script -x=3 -y=3" . format ( branch = branch ) . split ( " " ) ) orion . core . cli . main ( "insert -n {branch} script -x=-3 -y=3" . format ( branch = branch ) . split ( " " ) )
Change y's prior to full x and full y experiment
Change y ' s prior to full x and full y experiment
"""Change y's prior to full x and full y experiment"""
init_full_x_full_y