Skip to content

Commit c90ba96

Browse files
Fix: Add documentation link back to warning message
1 parent 25c19f1 commit c90ba96

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

openml/runs/functions.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,10 @@ def run_model_on_task( # noqa: PLR0913
111111
avoid_duplicate_runs = openml.config.avoid_duplicate_runs
112112
if avoid_duplicate_runs and openml.config.apikey is None:
113113
warnings.warn(
114-
"The 'avoid_duplicate_runs' parameter is set to True, but no API key is configured. "
115-
"Duplicate runs cannot be checked server-side without authentication. "
116-
"The run will proceed, but duplicates may be created.",
114+
"The 'avoid_duplicate_runs' parameter is set to True, but no API key is configured. "
115+
"Duplicate runs cannot be checked server-side without authentication. "
116+
"Please set your API key (see http://openml.github.io/openml-python/latest/examples/Basics/introduction_tutorial/). "
117+
"The run will proceed, but duplicates may be created.",
117118
UserWarning,
118119
stacklevel=2,
119120
)

0 commit comments

Comments
 (0)