A simple model that learns to predict Python source code
Project description
Source Code Modeling
This repo trains deep learning models on source code.
Try it yourself
- Clone this repo
- Install requirements from
requirements.txt
- Run
python_autocomplete/create_dataset.py
.- It collects repos mentioned in PyTorch awesome list
- Downloads the zip files of the repos
- Extract the zips
- Remove non python files
- Collect all python code to
data/train.py
and,data/eval.py
- Run
python_autocomplete/train.py
to train the model. Try changing hyper-parameters like model dimensions and number of layers. - Run
evaluate.py
to evaluate the model.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for labml_python_autocomplete-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38fb7774d67241443a0642c6cd0ff1fe37c638f0e0fe99d037b565aaa9f8da0e |
|
MD5 | cdbd9bc53db6aab83da21ddb157c9ee0 |
|
BLAKE2b-256 | fedd07acedbc0520ddfaa82c1dcf1d502395cae806c7c09f2e7e58a27a8a958f |
Close
Hashes for labml_python_autocomplete-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e6e5ec22dcf44bd4395c3de8ed472ee7adfe4589cf6c75d25d2a9fb537af1d4 |
|
MD5 | 9919db25ad7ff0e46fdcc82e95ee5b81 |
|
BLAKE2b-256 | 611816dfd26798e08ddcc19f2eaa266e652d544aa6eb946dc5df5a88639e8ff2 |