pytorch_translate/research/tune_ensemble_weights/tune_model_weights.py [12:33]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
def add_tune_args(parser):
    group = parser.add_argument_group("Tune parameter parser.")
    group.add_argument(
        "--n-grid",
        default=6,
        type=int,
        metavar="N",
        help="how many grid added to tune for each weight.",
    )
    group.add_argument(
        "--weight-lower-bound",
        default=0.0,
        type=float,
        help="lower bound for each weight.",
    )
    group.add_argument(
        "--weight-upper-bound",
        default=1.0,
        type=float,
        help="upper bound for each weight.",
    )
    group.add_argument(
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



pytorch_translate/research/tune_ensemble_weights/tune_model_weights_with_ax.py [10:31]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
def add_tune_args(parser):
    group = parser.add_argument_group("Tune parameter parser.")
    group.add_argument(
        "--n-grid",
        default=6,
        type=int,
        metavar="N",
        help="how many grid added to tune for each weight.",
    )
    group.add_argument(
        "--weight-lower-bound",
        default=0.0,
        type=float,
        help="lower bound for each weight.",
    )
    group.add_argument(
        "--weight-upper-bound",
        default=1.0,
        type=float,
        help="upper bound for each weight.",
    )
    group.add_argument(
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



