项目作者: Azizimj

项目描述 :
RNN GAN
高级语言: Jupyter Notebook
项目地址: git://github.com/Azizimj/RNN-GAN.git
创建时间: 2019-03-18T21:44:47Z
项目社区:https://github.com/Azizimj/RNN-GAN

开源协议:

下载


The objectives

  • Implement the forward and backward passes as well as the neural network training procedure for Recurrent Neural Networks (RNNs)
  • Learn the basic concepts of language modeling and how to apply RNNs
  • Implement popular generative model, Generative Adversarial Networks (GANs)

Work on the project

Please first clone or download as .zip file of this repository.

Working on the project in a virtual environment is highly encouraged.
In this project, please use Python 3.5 (or 3.6).
You will need to make sure that your virtualenv setup is of the correct version of python.

Please see below for executing a virtual environment.

  1. cd <wd>
  2. pip3 install virtualenv # If you didn't install it
  3. virtualenv -p $(which python3) /your/path/to/the/virtual/env
  4. source /your/path/to/the/virtual/env/bin/activate
  5. # Install dependencies
  6. pip3 install -r requirements.txt
  7. # install tensorflow (cpu version, recommended)
  8. pip3 install tensorflow
  9. # install tensorflow (gpu version)
  10. # run this command only if your device supports gpu running
  11. pip3 install tensorflow-gpu
  12. # Work on the project
  13. deactivate # Exit the virtual environment

Work with IPython Notebook

To start working on the project, simply run the following command to start an ipython kernel.

  1. # add your virtual environment to jupyter notebook
  2. python -m ipykernel install --user --name=/your/path/to/the/virtual/env
  3. # port is only needed if you want to work on more than one notebooks
  4. jupyter notebook --port=/your/port/

and then work on each problem with their corresponding .ipynb notebooks.
Check the python environment you are using on the top right corner.
If the name of environment doesn’t match, change it to your virtual environment in “Kernel>Change kernel”.

Problems

In each of the notebook file, we indicate TODO or Your Code for you to fill in with your implementation.
Majority of implementations will also be required under lib with specified tags.

Problem 1:

The IPython Notebook Problem_1.ipynb will walk you through implementing a recurrent neural network (RNN) from scratch.

Problem 2: Generative Adversarial Networks

The IPython Notebook Problem_2.ipynb will help you through implementing a generative adversarial network (GAN) using TensorFlow.