pydbm.nn package

Submodules

pydbm.nn.neural_network module

class pydbm.nn.neural_network.NeuralNetwork

Bases: object

Neural Network.

back_propagation

Back propagation in NN.

Parameters:Delta.
Returns.
Delta.
computable_loss

getter

forward_propagation

Forward propagation in NN.

Parameters:observed_arrnp.ndarray of image file array.
Returns:Propagated np.ndarray.
get_computable_loss

getter

get_nn_layer_list

getter

get_opt_params

getter

get_verificatable_result

getter

inference

Inference the feature points to reconstruct the time-series.

Override.

Parameters:observed_arr – Array like or sparse matrix as the observed data points.
Returns:Predicted array like or sparse matrix.
learn

Learn.

Parameters:
  • observed_arrnp.ndarray of observed data points.
  • target_arrnp.ndarray of labeled data. If None, the function of this NN model is equivalent to Convolutional Auto-Encoder.
nn_layer_list

getter

opt_params

getter

optimize

Back propagation.

Parameters:
  • learning_rate – Learning rate.
  • epoch – Now epoch.
save_pre_learned_params

Save pre-learned parameters.

Parameters:
  • dir_path – Path of dir. If None, the file is saved in the current directory.
  • file_name – The naming rule of files. If None, this value is nn.
set_computable_loss

setter

set_nn_layer_list

setter

set_opt_params

setter

set_verificatable_result

setter

verificatable_result

getter

pydbm.nn.nn_layer module

class pydbm.nn.nn_layer.NNLayer

Bases: object

NN Layer.

back_propagate

Back propagation in CNN layers.

Override.

Parameters:delta_arr – 2-rank array like or sparse matrix.
Returns:2-rank array like or sparse matrix.
delta_bias_arr

getter

delta_weight_arr

getter

forward_propagate

Forward propagation in NN layers.

Override.

Parameters:observed_arr – 2-rank array like or sparse matrix.
Returns:4-rank array like or sparse matrix.
get_delta_bias_arr

getter

get_delta_weight_arr

getter

get_graph

getter

graph

getter

reset_delta

Reset delta.

set_delta_bias_arr

setter

set_delta_weight_arr

setter

set_readonly

setter

Module contents