def get_dataless_dataset(model):
 global yaml_parse
 global control
 if (yaml_parse is None):
  from pylearn2.config import yaml_parse
 if (control is None):
  from pylearn2.datasets import control
 control.push_load_data(False)
 try:
  rval = yaml_parse.load(model.dataset_yaml_src)
 finally:
  control.pop_load_data()
 return rval

def get_dataless_dataset ( model ) : global yaml_parse global control if ( yaml_parse is None ) : from pylearn2 . config import yaml_parse if ( control is None ) : from pylearn2 . datasets import control control . push_load_data ( False ) try : rval = yaml_parse . load ( model . dataset_yaml_src ) finally : control . pop_load_data ( ) return rval
loads the dataset that model was trained on .