Skip to content

nikola-j/char-rnn-for-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

f8dc583 · Apr 30, 2019

History

16 Commits
Aug 23, 2018
Nov 26, 2018
Aug 23, 2018
Nov 26, 2018
Aug 2, 2018
Apr 30, 2019
Nov 26, 2018
Nov 26, 2018
Aug 21, 2018

Repository files navigation

Code char rnn in Keras

A Simple POC.

Multi-layer recurrent neural networks for training and sampling from texts, inspired by karpathy/char-rnn and ekzhang/char-rnn.

Trained on a dataset of python code functions.

Requirements

This code is written in Python 3, and it requires the Keras deep learning library.

pip install -r requirements.txt

Usage

To train the model with default settings use:

$ python train.py

To use the model use the 'inference.ipynb' notebook.

The dataset can be downloaded from here

Releases

No releases published

Packages

No packages published