Module Assign NameStore Str ImportFrom alias alias alias alias ImportFrom alias alias ImportFrom alias ImportFrom alias ClassDef bases body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr IfExp CompareIs NameLoad NameLoad Call NameLoad NameLoad If Call NameLoad AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Str orelse If Call NameLoad AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr For NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign TupleStore NameStore NameStore NameStore TupleLoad Call NameLoad TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr For NameStore Call NameLoad AttributeLoad NameLoad attr body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore IfExp CompareLt NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameStore BinOpAdd BinOpMult NameLoad NameLoad BinOpMult AttributeLoad NameLoad attr BinOpSub NameLoad BinOpMult AttributeLoad NameLoad attr NameLoad Assign NameStore NameStore BinOpAdd BinOpMult NameLoad NameLoad BinOpMult AttributeLoad NameLoad attr NameLoad Assign NameStore NameStore BinOpAdd BinOpMult NameLoad NameLoad BinOpMult AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore NameLoad AugAssignAdd NameStore NameLoad Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr AugAssignAdd NameStore NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Slice NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore NameStore TupleLoad Call NameLoad TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr For NameStore NameLoad body Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore NameLoad AugAssignAdd NameStore NameLoad AugAssignAdd NameStore NameLoad AugAssignDiv NameStore Call NameLoad NameLoad AugAssignDiv NameStore Call NameLoad NameLoad AugAssignDiv NameStore Call NameLoad NameLoad Return TupleLoad NameLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign NameStore CompareGt NameLoad Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Return Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Return TupleLoad BinOpSub NameLoad NameLoad BinOpSub NameLoad NameLoad BinOpSub NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore BinOpDiv NameLoad AttributeLoad NameLoad attr Return TupleLoad BinOpSub NameLoad NameLoad BinOpSub NameLoad NameLoad BinOpSub NameLoad NameLoad decorator_list decorator_list
N/A N/A __author__ Christian Osendorfer, osendorf@in.tum.de;Justin S Bayer, bayerj@in.tum.deSUN Yi, yi@idsia.ch scipy random outer zeros ones pybrain.datasets SupervisedDataSet UnsupervisedDataSet pybrain.supervised.trainers Trainer pybrain.utilities abstractMethod RbmGibbsTrainerConfig N/A N/A __init__ N/A N/A self N/A N/A N/A N/A self batchSize 10 N/A N/A self rWeights 0.1 N/A N/A self rHidBias 0.1 N/A N/A self rVisBias 0.1 N/A N/A self weightCost 0.0002 N/A N/A self iniMm 0.5 N/A N/A self finMm 0.9 N/A N/A self mmSwitchIter 5 N/A N/A self maxIter 9 N/A N/A self visibleDistribution bernoulli N/A N/A RbmGibbsTrainer N/A Trainer N/A N/A Class for training rbms with contrastive divergence. __init__ N/A N/A self rbm dataset cfg N/A None N/A N/A N/A self rbm rbm N/A N/A self invRbm N/A N/A rbm invert N/A N/A self dataset dataset N/A N/A self cfg N/A N/A cfg None N/A RbmGibbsTrainerConfig cfg N/A N/A isinstance N/A self dataset SupervisedDataSet N/A N/A N/A self datasetField input N/A N/A N/A isinstance N/A self dataset UnsupervisedDataSet N/A N/A N/A self datasetField sample N/A train N/A N/A self N/A N/A N/A N/A N/A self trainOnDataset N/A self dataset N/A trainOnDataset N/A N/A self dataset N/A N/A N/A This function trains the RBM using the same algorithm and
        implementation presented in:
        http://www.cs.toronto.edu/~hinton/MatlabForSciencePaper.html N/A cfg N/A self cfg N/A rows N/A N/A dataset randomBatches N/A self datasetField N/A cfg batchSize N/A N/A N/A olduw olduhb olduvb N/A N/A zeros N/A N/A N/A self rbm visibleDim N/A N/A self rbm hiddenDim N/A zeros N/A N/A self rbm hiddenDim N/A zeros N/A N/A self rbm visibleDim N/A t N/A range N/A cfg maxIter N/A N/A params N/A N/A self rbm params N/A params N/A N/A params reshape N/A N/A N/A self rbm visibleDim N/A N/A self rbm hiddenDim N/A biasParams N/A N/A self rbm biasParams N/A mm N/A N/A t N/A cfg mmSwitchIter N/A cfg iniMm N/A cfg finMm N/A N/A w hb vb N/A N/A self calcUpdateByRows rows N/A olduw uw N/A N/A olduw mm N/A N/A cfg rWeights N/A w N/A N/A cfg weightCost params N/A olduhb uhb N/A N/A olduhb mm N/A N/A cfg rHidBias hb N/A olduvb uvb N/A N/A olduvb mm N/A N/A cfg rVisBias vb N/A params uw N/A biasParams uhb N/A invBiasParams N/A N/A self invRbm biasParams N/A invBiasParams uvb N/A N/A self invRbm N/A N/A N/A self rbm invert N/A N/A N/A N/A self invRbm biasParams N/A invBiasParams N/A calcUpdateByRow N/A N/A self row N/A N/A N/A This function trains the RBM using only one data row.
        Return a 3-tuple consiting of updates for (weightmatrix,
        hidden bias weights, visible bias weights). N/A poshp N/A N/A N/A self rbm activate row N/A pos N/A outer row poshp N/A poshb poshp N/A posvb row N/A sampled N/A N/A self sampler poshp N/A recon N/A N/A N/A self invRbm activate sampled N/A neghp N/A N/A N/A self rbm activate recon N/A neg N/A outer recon neghp N/A neghb neghp N/A negvb recon N/A N/A N/A self updater pos neg poshb neghb posvb negvb N/A sampler N/A N/A self probabilities N/A N/A N/A N/A abstractMethod N/A updater N/A N/A self pos neg poshb neghb posvb negvb N/A N/A N/A N/A abstractMethod N/A calcUpdateByRows N/A N/A self rows N/A N/A N/A Return a 3-tuple constisting of update for (weightmatrix,
        hidden bias weights, visible bias weights). N/A N/A delta_w delta_hb delta_vb N/A N/A zeros N/A N/A N/A self rbm visibleDim N/A N/A self rbm hiddenDim N/A zeros N/A N/A self rbm hiddenDim N/A zeros N/A N/A self rbm visibleDim N/A row rows N/A N/A N/A dw dhb dvb N/A N/A self calcUpdateByRow row N/A delta_w dw N/A delta_hb dhb N/A delta_vb dvb N/A delta_w N/A len rows N/A delta_hb N/A len rows N/A delta_vb N/A len rows N/A N/A delta_w delta_hb delta_vb N/A N/A RbmBernoulliTrainer N/A RbmGibbsTrainer N/A sampler N/A N/A self probabilities N/A N/A N/A result N/A probabilities N/A N/A random rand N/A N/A self rbm hiddenDim N/A N/A N/A result astype int32 N/A updater N/A N/A self pos neg poshb neghb posvb negvb N/A N/A N/A N/A N/A pos neg N/A poshb neghb N/A posvb negvb N/A N/A RbmGaussTrainer N/A RbmGibbsTrainer N/A __init__ N/A N/A self rbm dataset cfg N/A None N/A N/A N/A N/A N/A super RbmGaussTrainer self __init__ rbm dataset cfg N/A N/A self visibleVariances N/A ones N/A N/A rbm net outdim N/A sampler N/A N/A self probabilities N/A N/A N/A N/A N/A random normal probabilities N/A self visibleVariances N/A updater N/A N/A self pos neg poshb neghb posvb negvb N/A N/A N/A pos N/A pos N/A self visibleVariances N/A N/A N/A pos neg N/A poshb neghb N/A posvb negvb N/A N/A