Skip to content

Commit

Permalink
Update main.py.jinja with human in the loop youtube video
Browse files Browse the repository at this point in the history
  • Loading branch information
sgbaird authored Sep 20, 2024
1 parent 963f62c commit 6635039
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/honegumi/ax/main.py.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ X_train = pd.DataFrame([
# Define y_train (normally the values would be supplied directly instead of calculating here)
y_train = [{{ objective_function }}(row["x1"], row["x2"]{% if composition_constraint %}, row["x3"]{% endif %}{% if categorical %}, row["c1"]{% endif %}) for _, row in X_train.iterrows()]

# See https://youtu.be/4tnaL9ts6CQ for simple human-in-the-loop BO instructions

# Define the number of training examples
n_train = len(X_train)
{%- endif %}
Expand Down

0 comments on commit 6635039

Please sign in to comment.