示例#1
0
文件: NIPS.py 项目: csa0001/Refinery
def get_minibatch_iterator(nBatch=10, nLap=1, 
                           dataorderseed=0, **kwargs):
    Data = WordsData.read_from_mat(matfilepath)
    DataIterator = AdmixMinibatchIterator(Data, nBatch=nBatch,
                    nLap=nLap, dataorderseed=dataorderseed)
    DataIterator.summary = get_data_info(Data.nDocTotal, Data.vocab_size)
    return DataIterator
示例#2
0
def get_minibatch_iterator(seed=8675309,
                           nBatch=10,
                           nObsBatch=None,
                           nObsTotal=25000,
                           nLap=1,
                           allocModelName=None,
                           dataorderseed=0,
                           **kwargs):
    Data = WordsData.read_from_mat(matfilepath)
    DataIterator = AdmixMinibatchIterator(Data,
                                          nBatch=nBatch,
                                          nObsBatch=nObsBatch,
                                          nLap=nLap,
                                          dataorderseed=dataorderseed)
    DataIterator.summary = get_data_info(Data.nDocTotal, Data.vocab_size)
    return DataIterator
示例#3
0
def get_minibatch_iterator(seed=8675309, nBatch=10, nObsBatch=None, nObsTotal=25000, nLap=1, allocModelName=None, dataorderseed=0, **kwargs):
    Data = WordsData.read_from_mat( matfilepath )
    DataIterator = AdmixMinibatchIterator(Data, nBatch=nBatch, nObsBatch=nObsBatch, nLap=nLap, dataorderseed=dataorderseed)
    DataIterator.summary = get_data_info(Data.nDocTotal, Data.vocab_size)
    return DataIterator
示例#4
0
def get_data(seed=8675309, nObsTotal=25000, **kwargs):
    ''' Grab data from matfile specified by matfilepath
    '''
    Data = WordsData.read_from_mat( matfilepath )
    Data.summary = get_data_info(Data.nDocTotal, Data.vocab_size)
    return Data
示例#5
0
文件: NIPS.py 项目: csa0001/Refinery
def get_data(**kwargs):
    ''' Grab data from matfile specified by matfilepath
    '''
    Data = WordsData.read_from_mat(matfilepath)
    Data.summary = get_data_info(Data.nDocTotal, Data.vocab_size)
    return Data