Generating Docstrings
Collection
In these projects, I generate docstrings for functions from the code in said functions.
•
3 items
•
Updated
This model is a fine-tuned version of Salesforce/codet5-base on the None dataset. It achieves the following results on the evaluation set:
This model predicts the docstring (the output) for a function (the input).
For more information on how it was created, check out the following link: https://github.com/DunnBC22/NLP_Projects/blob/main/Generate%20Docstrings/Smol%20Dataset/Code_T5_Project-Base%20Checkpoint.ipynb
This model is intended to demonstrate my ability to solve a complex problem using technology.
Dataset Source: calum/the-stack-smol-python-docstrings (from HuggingFace Datasets; https://huggingface.co/datasets/calum/the-stack-smol-python-docstrings)
The following hyperparameters were used during training:
Training Loss | Epoch | Step | Validation Loss | Rouge1 | Rouge2 | Rougel | Rougelsum | Gen Len |
---|---|---|---|---|---|---|---|---|
0.8261 | 1.0 | 921 | 0.6435 | 0.4947 | 0.3661 | 0.4794 | 0.4791 | 13.7526 |
0.6234 | 2.0 | 1842 | 0.6199 | 0.5017 | 0.374 | 0.4866 | 0.4864 | 13.8909 |