pygan.generativemodel.conditionalgenerativemodel package¶
Submodules¶
pygan.generativemodel.conditionalgenerativemodel.conditional_convolutional_model module¶
-
class
pygan.generativemodel.conditionalgenerativemodel.conditional_convolutional_model.
ConditionalConvolutionalModel
(deconvolution_model, batch_size, layerable_cnn_list, learning_rate=1e-05, learning_attenuate_rate=0.1, attenuate_epoch=50, computable_loss=None, opt_params=None, verificatable_result=None, cnn=None, condition_noise_sampler=None)[source]¶ Bases:
pygan.generativemodel.conditional_generative_model.ConditionalGenerativeModel
Convolutional Neural Network as a GenerativeModel.
This model has a so-called Deconvolutional Neural Network as a Conditioner, where the function of Conditioner is a conditional mechanism to use previous knowledge to condition the generations, incorporating information from previous observed data points to itermediate layers of the Generator. In this method, this model can “look back” without a recurrent unit as used in RNN or LSTM.
This model observes not only random noises but also any other prior information as a previous knowledge and outputs feature points. Due to the Conditioner, this model has the capacity to exploit whatever prior knowledge that is available and can be represented as a matrix or tensor.
Deconvolution in this class is a transposed convolutions which “work by swapping the forward and backward passes of a convolution.” (Dumoulin, V., & Visin, F. 2016, p20.)
References
- Dumoulin, V., & V,kisin, F. (2016). A guide to convolution arithmetic for deep learning. arXiv preprint arXiv:1603.07285.
- Mirza, M., & Osindero, S. (2014). Conditional generative adversarial nets. arXiv preprint arXiv:1411.1784.
- Yang, L. C., Chou, S. Y., & Yang, Y. H. (2017). MidiNet: A convolutional generative adversarial network for symbolic-domain music generation. arXiv preprint arXiv:1703.10847.
-
cnn
¶ getter
-
condition_noise_sampler
¶ getter
-
conditional_axis
¶ getter
-
deconvolution_model
¶ getter
-
epoch_counter
¶ getter
-
inference
(observed_arr)[source]¶ Draws samples from the true distribution.
Parameters: observed_arr – np.ndarray of observed data points. Returns: np.ndarray of inferenced.