Skip to content

Commit 41e7d65

Browse files
fix reproduce paper structure
1 parent 4c52710 commit 41e7d65

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

examples/reproduce_papers/2019_Data_re_uploading/main.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,7 @@ def update_step(params, opt_state, x, y):
122122

123123
start_time = time.time()
124124
loss_history = []
125-
# L-BFGS often converges faster in fewer steps, but needs more computation per step (line search)
126-
# We'll use fewer iterations compared to Adam (e.g., 50 or 100)
127-
for _ in range(50):
125+
for _ in range(100):
128126
params, opt_state, loss_val = update_step(params, opt_state, X_tc, Y_tc)
129127
loss_history.append(loss_val)
130128

-5.39 KB
Loading

examples/reproduce_papers/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)