pydbm.synapse.recurrenttemporalgraph package

Submodules

pydbm.synapse.recurrenttemporalgraph.lstm_graph module

class pydbm.synapse.recurrenttemporalgraph.lstm_graph.LSTMGraph

Bases: pydbm.synapse.recurrent_temporal_graph.RecurrentTemporalGraph

Long short term memory(LSTM) networks based on Complete Bipartite Graph.

The shallower layer is to the deeper layer what the visible layer is to the hidden layer.

In relation to do transfer learning, this object is-a Synapse which can be delegated to LSTMModel.

create_node

Set links of nodes to the graphs.

Override.

Parameters:
  • shallower_neuron_count – The number of neurons in shallower layer.
  • deeper_neuron_count – The number of neurons in deeper layer.
  • shallower_activating_function – The activation function in shallower layer.
  • deeper_activating_function – The activation function in deeper layer.
  • weights_arr – The weights of links. If this array is not empty, ParamsInitializer.sample_f will not be called and weights_arr will be refered as initial weights.
  • scale – Scale of parameters which will be ParamsInitializer.
  • params_initializer – is-a ParamsInitializer.
  • params_dictdict of parameters other than size to be input to function ParamsInitializer.sample_f.
create_rnn_cells

Create RNN cells for a LSTMModel.

Parameters:
  • input_neuron_count – The number of units in input layer.
  • hidden_neuron_count – The number of units in hidden layer.
  • output_neuron_count – The number of units in output layer.
  • scale – Scale of parameters which will be ParamsInitializer.
  • params_initializer – is-a ParamsInitializer.
  • params_dictdict of parameters other than size to be input to function ParamsInitializer.sample_f.
diff_hidden_bias_arr_list = []
diff_rbm_hidden_weights_arr

getter

diff_rnn_hidden_bias_arr

getter

diff_rnn_hidden_weights_arr_list = []
diff_rnn_visible_bias_arr

getter

forget_gate_activating_function

getter

get_diff_rbm_hidden_weights_arr

getter

get_diff_rnn_hidden_bias_arr

getter

get_diff_rnn_visible_bias_arr

getter

get_forget_gate_activating_function

getter

get_hat_weights_arr

getter

get_hidden_activating_function

getter

get_hidden_activity_arr

getter

get_hidden_bias_arr

getter

get_hidden_bias_arr_list

getter

get_input_gate_activating_function

getter

get_lstm_bias_arr

getter

get_observed_activating_function

getter

get_output_activating_function

getter

get_output_bias_arr

getter

get_output_gate_activating_function

getter

get_pre_rbm_hidden_activity_arr

getter

get_rbm_hidden_activity_arr_list

getter

get_rbm_hidden_weights_arr

getter

get_rnn_hidden_bias_arr

getter

get_v_hat_weights_arr

getter

get_visible_bias_arr_list

getter

get_weights_forget_cec_arr

getter

get_weights_input_cec_arr

getter

get_weights_lstm_hidden_arr

getter

get_weights_lstm_observed_arr

getter

get_weights_output_arr

getter

get_weights_output_cec_arr

getter

hat_weights_arr

getter

hidden_activating_function

getter

hidden_activity_arr

getter

hidden_bias_arr

getter

hidden_bias_arr_list

getter

input_gate_activating_function

getter

lstm_bias_arr

getter

observed_activating_function

getter

output_activating_function

getter

output_bias_arr

getter

output_gate_activating_function

getter

pre_hidden_activity_arr_list = []
pre_rbm_hidden_activity_arr

getter

rbm_hidden_activity_arr_list

getter

rbm_hidden_weights_arr

getter

rnn_hidden_bias_arr

getter

set_diff_rbm_hidden_weights_arr

setter

set_diff_rnn_hidden_bias_arr

setter

set_diff_rnn_visible_bias_arr

setter

set_forget_gate_activating_function

setter

set_hat_weights_arr

setter

set_hidden_activating_function

setter

set_hidden_activity_arr

setter

set_hidden_bias_arr

setter

set_hidden_bias_arr_list

setter

set_input_gate_activating_function

setter

set_lstm_bias_arr

setter

set_observed_activating_function

setter

set_output_activating_function

setter

set_output_bias_arr

setter

set_output_gate_activating_function

setter

set_pre_rbm_hidden_activity_arr

setter

set_rbm_hidden_activity_arr_list

setter

set_rbm_hidden_weights_arr

setter

set_rnn_hidden_bias_arr

setter

set_v_hat_weights_arr

setter

set_visible_bias_arr_list

setter

set_weights_forget_cec_arr

setter

set_weights_input_cec_arr

setter

set_weights_lstm_hidden_arr

setter

set_weights_lstm_observed_arr

setter

set_weights_output_arr

setter

set_weights_output_cec_arr

setter

v_hat_weights_arr

getter

visible_bias_arr_list

getter

weights_forget_cec_arr

getter

weights_input_cec_arr

getter

weights_lstm_hidden_arr

getter

weights_lstm_observed_arr

getter

weights_output_arr

getter

weights_output_cec_arr

getter

pydbm.synapse.recurrenttemporalgraph.rnn_graph module

class pydbm.synapse.recurrenttemporalgraph.rnn_graph.RNNGraph

Bases: pydbm.synapse.recurrent_temporal_graph.RecurrentTemporalGraph

Recurrent Neural Network Restricted Boltzmann Machines (RNN-RBM) based on Complete Bipartite Graph.

The shallower layer is to the deeper layer what the visible layer is to the hidden layer.

create_node()

Set links of nodes to the graphs.

Override.

Parameters:
  • shallower_neuron_count – The number of neurons in shallower layer.
  • deeper_neuron_count – The number of neurons in deeper layer.
  • shallower_activating_function – The activation function in shallower layer.
  • deeper_activating_function – The activation function in deeper layer.
  • weights_arr – The weights of links. If this array is not empty, ParamsInitializer.sample_f will not be called and weights_arr will be refered as initial weights.
  • scale – Scale of parameters which will be ParamsInitializer.
  • params_initializer – is-a ParamsInitializer.
  • params_dictdict of parameters other than size to be input to function ParamsInitializer.sample_f.
diff_hidden_bias_arr_list

getter

diff_visible_bias_arr_list

getter

get_diff_hidden_bias_arr_list()

getter

get_diff_visible_bias_arr_list()

getter

get_hat_weights_arr()

getter

get_pre_hidden_activity_arr_list()

getter

get_rnn_hidden_bias_arr()

getter

get_v_hat_weights_arr()

getter

hat_weights_arr

getter

pre_hidden_activity_arr_list

getter

rnn_hidden_bias_arr

getter

set_diff_hidden_bias_arr_list()

setter

set_diff_visible_bias_arr_list()

setter

set_hat_weights_arr()

setter

set_pre_hidden_activity_arr_list()

setter

set_rnn_hidden_bias_arr()

setter

set_v_hat_weights_arr()

setter

v_hat_weights_arr

getter

Module contents