Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
More robust handling of openml_url
I ran into issues when the openml server config is not exactly 'https://www.openml.org/api/v1/xml', e.g. I had 'https://www.openml.org/api/v1'.
I only noticed when getting a bad dataset url.

This edit makes the API more robust against how exactly the server URL is set in the config.
  • Loading branch information
joaquinvanschoren authored Jun 24, 2020
commit 203f5dac28dd0d6d5b724f525b71d520cd7a72d6
2 changes: 1 addition & 1 deletion openml/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def get_server_base_url() -> str:
=======
str
"""
return server[:-len('/api/v1/xml')]
return server.split("/api")[0]


apikey = _defaults['apikey']
Expand Down