Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/boyangumn/DCN-New
/ functions
Functions
173 in github.com/boyangumn/DCN-New
⨍
Functions
173
◇
Types & classes
21
↓ 1 callers
Function
test_SdA
Demonstrates how to train and test a stochastic denoising autoencoder. This is demonstrated on MNIST. :type learning_rate: float :p
Theano_example_code/SdA.py:329
↓ 1 callers
Function
test_cA
This demo is tested on MNIST :type learning_rate: float :param learning_rate: learning rate used for training the contracting
Theano_example_code/cA.py:231
↓ 1 callers
Function
test_dA
This demo is tested on MNIST :type learning_rate: float :param learning_rate: learning rate used for training the DeNosing
Theano_example_code/dA.py:263
↓ 1 callers
Function
test_mlp
Demonstrate stochastic gradient descent optimization for a multilayer perceptron This is demonstrated on MNIST. :type learning_rate
Theano_example_code/mlp.py:201
↓ 1 callers
Function
test_rbm
Demonstrate how to train and afterwards sample from it using Theano. This is demonstrated on MNIST. :param learning_rate: learning rate
Theano_example_code/rbm.py:363
↓ 1 callers
Function
test_rnnrbm
(batch_size=100, num_epochs=200)
Theano_example_code/rnnrbm.py:289
↓ 1 callers
Method
train
Train the RNN-RBM via stochastic gradient descent (SGD) using MIDI files converted to piano-rolls. files : list of strings
Theano_example_code/rnnrbm.py:231
↓ 1 callers
Method
train
(self, x, y, window_size, learning_rate)
Theano_example_code/rnnslu.py:245
↓ 1 callers
Function
train_lstm
( dim_proj=128, # word embeding dimension and LSTM number of hidden units. patience=10, # Number of
Theano_example_code/lstm.py:448
↓ 1 callers
Function
zipp
When we reload the model. Needed for the GPU stuff.
Theano_example_code/lstm.py:58
Method
__init__
(self, path='.')
mnist_loader.py:18
Method
__init__
Initialize the dA2 class by specifying the number of visible units (the dimension d of the input ), the number of hidden units ( the
multi_layer_km.py:32
Method
__init__
( self, numpy_rng, theano_rng=None, input = None, n_ins=784, l
multi_layer_km.py:249
Method
__init__
Constructs and compiles Theano functions for training and sequence generation. n_hidden : integer Number of hidden units
Theano_example_code/rnnrbm.py:181
Method
__init__
RBM constructor. Defines the parameters of the model along with basic operations for inferring hidden from visible (and vice-versa),
Theano_example_code/rbm.py:32
Method
__init__
Initialize the dA class by specifying the number of visible units (the dimension d of the input ), the number of hidden units ( the d
Theano_example_code/dA.py:78
Method
__init__
This class is made to support a variable number of layers. :type numpy_rng: numpy.random.RandomState :param numpy_rng: numpy random n
Theano_example_code/DBN.py:30
Method
__init__
This class is made to support a variable number of layers. :type numpy_rng: numpy.random.RandomState :param numpy_rng: numpy random
Theano_example_code/SdA.py:62
Method
__init__
Initialize the cA class by specifying the number of visible units (the dimension d of the input), the number of hidden units (the dime
Theano_example_code/cA.py:82
Method
__init__
Allocate a LeNetConvPoolLayer with shared variable internal parameters. :type rng: numpy.random.RandomState :param rng: a ra
Theano_example_code/convolutional_mlp.py:45
Method
__init__
Typical hidden layer of a MLP: units are fully-connected and have sigmoidal activation function. Weight matrix W is of shape (n_in,n_
Theano_example_code/mlp.py:42
Method
__init__
Initialize the parameters for the multilayer perceptron :type rng: numpy.random.RandomState :param rng: a random number generator use
Theano_example_code/mlp.py:126
Method
__init__
nh :: dimension of the hidden layer nc :: number of classes ne :: number of word embeddings in the vocabulary de :: d
Theano_example_code/rnnslu.py:155
Method
__init__
Initialize the parameters of the logistic regression :type input: theano.tensor.TensorType :param input: symbolic variable that desc
Theano_example_code/logistic_cg.py:60
Method
__init__
Initialize the parameters of the logistic regression :type input: theano.tensor.TensorType :param input: symbolic variable that desc
Theano_example_code/logistic_sgd.py:61
Method
__init__
(self, **kwargs)
Theano_example_code/hmc/hmc.py:324
Function
_step
(m_, x_, h_, c_)
Theano_example_code/lstm.py:174
Function
adadelta
An adaptive learning rate optimizer Parameters ---------- lr : Theano SharedVariable Initial learning rate tpramas: Thea
Theano_example_code/lstm.py:241
Function
arguments
Returns tuple containing dictionary of calling function's named arguments and a list of calling function's unnamed positional arguments.
multi_layer_km.py:773
Function
batch_emc
Function to perform Entropy-Minimization-Clustering.
multi_layer_km.py:738
Function
batch_mmc
Function to perform Maximal-Margin-Clustering.
multi_layer_km.py:765
Function
callback
(theta_value)
Theano_example_code/logistic_cg.py:257
Method
display
(cls, img, width=28, threshold=200)
mnist_loader.py:81
Function
drop
Implement dropout
multi_layer_km.py:607
Function
experiment
(state, channel)
Theano_example_code/convolutional_mlp.py:348
Method
finetune_cost_updates
This function computes the cost and the updates .
multi_layer_km.py:506
Method
finetune_cost_updates
This function computes the cost and the updates.
multi_layer_km.py:562
Method
finetune_cost_updates
(self, center, mu, learning_rate)
multi_layer_km.py:603
Function
gaussian_energy
(x)
Theano_example_code/hmc/test_hmc.py:28
Method
get_hidden_values
Computes the values of the hidden layer Removed the nonlinearity
multi_layer_km.py:219
Method
get_reconstructed_input
Computes the reconstructed input given the values of the hidden layer
multi_layer_km.py:230
Method
gibbs_hvh
This function implements one step of Gibbs sampling, starting from the hidden state
Theano_example_code/rbm.py:192
Method
gibbs_vhv
This function implements one step of Gibbs sampling, starting from the visible state
Theano_example_code/rbm.py:200
Function
leapfrog
Inside loop of Scan. Performs one step of leapfrog update, using Hamiltonian dynamics. Parameters ----------
Theano_example_code/hmc/hmc.py:108
Function
load_data
Load the dataset, perform shuffling
multi_layer_km.py:620
Method
load_testing
(self)
mnist_loader.py:33
Method
load_training
(self)
mnist_loader.py:42
Function
lstm_layer
(tparams, state_below, options, prefix='lstm', mask=None)
Theano_example_code/lstm.py:160
Method
new_from_shared_positions
:param shared_positions: theano ndarray shared var with many particle [initial] positions :param energy_fn:
Theano_example_code/hmc/hmc.py:328
Function
param_init_lstm
Init the LSTM parameter: :see: init_params
Theano_example_code/lstm.py:138
Function
pred_probs
If you want to use a trained model, this is useful to compute the probabilities of new examples.
Theano_example_code/lstm.py:406
Function
predict
An example of how to load a trained model and use it to predict labels.
Theano_example_code/logistic_sgd.py:449
Method
recurrence
(x_t, h_tm1)
Theano_example_code/rnnslu.py:203
Function
rmsprop
A variant of SGD that scales the step size by running average of the recent step norms. Parameters ---------- lr : Theano Share
Theano_example_code/lstm.py:302
Function
sgd
Stochastic Gradient Descent :note: A more complicated version of sgd then needed. This is done like that for adadelta and rmsprop.
Theano_example_code/lstm.py:213
Function
speed
This fonction modify the configuration theano and don't restore it!
Theano_example_code/test.py:85
Function
test_SdA
()
Theano_example_code/test.py:44
Function
test_convolutional_mlp
()
Theano_example_code/test.py:36
Function
test_dA
()
Theano_example_code/test.py:40
Function
test_dbn
()
Theano_example_code/test.py:48
Function
test_hmc
()
Theano_example_code/hmc/test_hmc.py:63
Function
test_logistic_cg
()
Theano_example_code/test.py:22
Function
test_logistic_sgd
()
Theano_example_code/test.py:18
Function
test_lstm
()
Theano_example_code/test.py:81
Function
test_mlp
()
Theano_example_code/test.py:32
Function
test_rbm
()
Theano_example_code/test.py:52
Function
test_rnnrbm
()
Theano_example_code/test.py:57
Function
test_rnnslu
()
Theano_example_code/test.py:61
Method
test_score
()
Theano_example_code/DBN.py:273
Method
test_score
()
Theano_example_code/SdA.py:323
Function
train_fn_grad
(theta_value)
Theano_example_code/logistic_cg.py:247
Method
valid_score
()
Theano_example_code/DBN.py:269
Method
valid_score
()
Theano_example_code/SdA.py:319
← previous
101–173 of 173, ranked by callers