Skip to content

Commit 059bad7

Browse files
committed
small additions to setup list
1 parent c0c6643 commit 059bad7

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

openml/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
from . import runs
2323
from . import flows
2424
from . import setups
25+
from . import study
2526
from . import evaluations
2627
from .runs import OpenMLRun
2728
from .tasks import OpenMLTask, OpenMLSplit

openml/flows/sklearn_converter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ def _serialize_cross_validator(o):
533533
for key in args:
534534
# We need deprecation warnings to always be on in order to
535535
# catch deprecated param values.
536-
# This is set in utils/__init__.py but it gets overwritten
536+
# This is set in utils/__init__.py.py.py but it gets overwritten
537537
# when running under python3 somehow.
538538
warnings.simplefilter("always", DeprecationWarning)
539539
try:

openml/study/functions.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,11 @@ def get_study(study_id):
2727
creator = result_dict['oml:creator']
2828
tags = []
2929
for tag in _multitag_to_list(result_dict, 'oml:tag'):
30-
tags.append({'name': tag['oml:name'],
31-
'window_start': tag['oml:window_start'],
32-
'write_access': tag['oml:write_access']})
30+
current_tag = {'name': tag['oml:name'],
31+
'write_access': tag['oml:write_access']}
32+
if 'oml:window_start' in tag:
33+
current_tag['window_start'] = tag['oml:window_start']
34+
tags.append(current_tag)
3335

3436
datasets = None
3537
tasks = None

0 commit comments

Comments
 (0)