def fake_mldata(columns_dict, dataname, matfile, ordering=None):
 datasets = dict(columns_dict)
 for name in datasets:
  datasets[name] = datasets[name].T
 if (ordering is None):
  ordering = sorted(list(datasets.keys()))
 datasets['mldata_descr_ordering'] = sp.empty((1, len(ordering)), dtype='object')
 for (i, name) in enumerate(ordering):
  datasets['mldata_descr_ordering'][(0, i)] = name
 scipy.io.savemat(matfile, datasets, oned_as='column')

def fake_mldata ( columns_dict , dataname , matfile , ordering = None ) : datasets = dict ( columns_dict ) for name in datasets : datasets [ name ] = datasets [ name ] . T if ( ordering is None ) : ordering = sorted ( list ( datasets . keys ( ) ) ) datasets [ 'mldata_descr_ordering' ] = sp . empty ( ( 1 , len ( ordering ) ) , dtype = 'object' ) for ( i , name ) in enumerate ( ordering ) : datasets [ 'mldata_descr_ordering' ] [ ( 0 , i ) ] = name scipy . io . savemat ( matfile , datasets , oned_as = 'column' )
create a fake mldata data set .