Skip to content

Commit

Permalink
modified: dsm/datasets.py
Browse files Browse the repository at this point in the history
  • Loading branch information
chiragnagpal committed Oct 30, 2020
1 parent 660497f commit eb911d8
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions dsm/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,8 @@ def load_dataset(dataset='SUPPORT', **kwargs):
Parameters
----------
dataset: str
The choice of dataset to load. Currently implemented is 'SUPPORT'
and 'PBC'.
The choice of dataset to load. Currently implemented is 'SUPPORT',
'PBC' and 'FRAMINGHAM'.
**kwargs: dict
Dataset specific keyword arguments.
Expand All @@ -208,11 +208,13 @@ def load_dataset(dataset='SUPPORT', **kwargs):
event times and the censoring indicators respectively.
"""
sequential = kwargs.get('sequential', False)

if dataset == 'SUPPORT':
return _load_support_dataset()
if dataset == 'PBC':
sequential = kwargs.get('sequential', False)
return _load_pbc_dataset(sequential)
if dataset == 'FRAMINGHAM':
return _load_framingham_dataset(sequential)
else:
return NotImplementedError('Dataset '+dataset+' not implemented.')
raise NotImplementedError('Dataset '+dataset+' not implemented.')

0 comments on commit eb911d8

Please sign in to comment.