Skip to content
Prev Previous commit
Apply suggestions from code review
Co-authored-by: PGijsbers <p.gijsbers@tue.nl>
  • Loading branch information
mfeurer and PGijsbers authored Apr 20, 2021
commit 4c81ae0851b8f8a979310c4de7689f9b2e874c2c
2 changes: 1 addition & 1 deletion examples/20_basic/introduction_tutorial.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
# For this tutorial, our configuration publishes to the test server
# as to not crowd the main server with runs created by examples.
myrun = run.publish()
print(f"kNN on {data.name}: https://test.openml.org/r/{myrun.run_id}")
print(f"kNN on {data.name}: {myrun.openml_url}")

############################################################################
openml.config.stop_using_configuration_for_example()
4 changes: 2 additions & 2 deletions examples/20_basic/simple_flows_and_runs_tutorial.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
# ==================

myrun = run.publish()
print("Run was uploaded to https://test.openml.org/r/" + str(myrun.run_id))
print("The flow can be found at https://test.openml.org/f/" + str(myrun.flow_id))
print(f"Run was uploaded to {myrun.openml_url}")
print(f"The flow can be found at {myrun.flow.openml_url}")

############################################################################
openml.config.stop_using_configuration_for_example()
8 changes: 4 additions & 4 deletions examples/30_extended/flows_and_runs_tutorial.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
myrun = run.publish()
# For this tutorial, our configuration publishes to the test server
# as to not pollute the main server.
print("Uploaded to https://test.openml.org/r/" + str(myrun.run_id))
print(f"Uploaded to {myrun.openml_url}")

############################################################################
# We can now also inspect the flow object which was automatically created:
Expand Down Expand Up @@ -115,7 +115,7 @@

run = openml.runs.run_model_on_task(pipe, task, avoid_duplicate_runs=False)
myrun = run.publish()
print("Uploaded to https://test.openml.org/r/" + str(myrun.run_id))
print(f"Uploaded to {myrun.openml_url}")


# The above pipeline works with the helper functions that internally deal with pandas DataFrame.
Expand Down Expand Up @@ -159,7 +159,7 @@

run = openml.runs.run_model_on_task(pipe, task, avoid_duplicate_runs=False, dataset_format="array")
myrun = run.publish()
print("Uploaded to https://test.openml.org/r/" + str(myrun.run_id))
print(f"Uploaded to {myrun.openml_url}")

###############################################################################
# Running flows on tasks offline for later upload
Expand Down Expand Up @@ -229,7 +229,7 @@

run = openml.runs.run_model_on_task(clf, task, avoid_duplicate_runs=False)
myrun = run.publish()
print(f"kNN on {data.name}: https://test.openml.org/r/{myrun.run_id}")
print(f"kNN on {data.name}: {myrun.openml_url}")


############################################################################
Expand Down