You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
raiseValueError(f"If auto is None, num_trials must also be provided. Given num_candidates={self.num_candidates}, we'd recommend setting num_trials to ~{self._set_num_trials_from_num_candidates(student, zeroshot_opt, self.num_candidates)}.")
125
+
raiseValueError(
126
+
f"If auto is None, num_trials must also be provided. Given num_candidates={self.num_candidates}, we'd recommend setting num_trials to ~{self._set_num_trials_from_num_candidates(student, zeroshot_opt, self.num_candidates)}."
127
+
)
125
128
126
129
# If auto is None, and num_candidates or num_trials is None, raise an error
raiseValueError("If auto is not None, num_candidates and num_trials cannot be set, since they would be overrided by the auto settings. Please either set auto to None, or do not specify num_candidates and num_trials.")
135
+
raiseValueError(
136
+
"If auto is not None, num_candidates and num_trials cannot be set, since they would be overrided by the auto settings. Please either set auto to None, or do not specify num_candidates and num_trials."
137
+
)
133
138
134
139
# Set random seeds
135
140
seed=seedorself.seed
@@ -175,7 +180,7 @@ def compile(
175
180
devset=valset,
176
181
metric=self.metric,
177
182
num_threads=self.num_threads,
178
-
max_errors=self.max_errors,
183
+
max_errors=effective_max_errors,
179
184
display_table=False,
180
185
display_progress=True,
181
186
provide_traceback=provide_traceback,
@@ -382,7 +387,7 @@ def _get_user_confirmation(
382
387
"""
383
388
)
384
389
385
-
print(f"{user_message}\n{user_confirmation_message}\nDo you wish to continue? (y/n): ", end='', flush=True)
390
+
print(f"{user_message}\n{user_confirmation_message}\nDo you wish to continue? (y/n): ", end="", flush=True)
0 commit comments