"Give me six hours to chop down a tree, and I will spend the first four sharpening the axe."
--Abraham Lincoln.
Table of contents generated with markdown-toc
This repository simulates the building blocks of a simplified communication diagram, focusing on the implementation of several classical and machine-learning based decoders for tail-biting convolutional codes. It explores several models: CVA, WCVA, WCVAE, gated WCVAE. The CVA is the circular Viterbi algorithm from this paper. The WCVA is the weighted CVA. The WCVAE stands for the weighted circular Viterbi algorithm ensemble. At last, the gated WCVAE lowers the complexity of the WCVAE by employing a low-complexity gating. All methods are explained in the corresponding paper.
The python simulations of the encoder & channel and decoders.
Includes the channel model and BPSK modulator. The main function is the channel dataset - a wrapper of the ground truth codewords, along with the received channel word. Used for training the decoders as well as evaluation.
The backbone decoders: CVA, WCVA, WCVAE, gated WCVAE.
Wrappers for training and evaluation of the decoders.
Each trainer inherets from the basic trainer class, extending it as needed.
Plotting of the FER versus SNR, and the FER versus the states. See Figures 4-6 in the paper.
Extra utils for saving and loading pkls; tail-biting related calculations; and more...
Controls all parameters and hyperparameters in Tables I and II.
Folder with all codes matrices.
Definitions of relative directories.
To execute the code, first download and install Git, Anaconda and PyCharm.
Then install the environment, follow the installation setup below.
At last, open PyCharm in the root directory. You may run either the trainers or one of the plotters.
This code was simulated with GeForce RTX 2060 with driver version 432.00 and CUDA 10.1.
-
Open git bash and cd to a working directory of you choice.
-
Clone this repository to your local machine.
-
Open Anaconda prompt and navigate to the cloned repository.
-
Run the command "conda env create -f deep_ensemble.yml". This should install the required python environment.
-
Open the cloned directory using PyCharm.
-
After the project has been opened in PyCharm, go to settings, File -> Settings... (or CTRL ALT S)
-
In the opened window open the tab Project -> Project Interpreter
-
In the new window, click on the cog icon and then on Add...
-
In the add python interpreter window, click on the Conda Environment tab
-
Select Existing environment and navigate to where the python.exe executable of the deep_ensemble environment is installed under the interpreter setting
-
For windows its usually found at C:\users<username>\anaconda3\envs\deep_ensemble\python.exe)
-
For linux its usually found at /home//anaconda3
-
Click OK
-
Done!
Please cite our paper if the code is used for publishing research.
Credit to this repo for the environment installation.