type4py icon indicating copy to clipboard operation
type4py copied to clipboard

Type4Py: Deep Similarity Learning-Based Type Inference for Python

Results 6 type4py issues
Sort by recently updated
recently updated
newest added

Before this PR, we had to compute triplets on the fly to obtain a training sample, slowing down training and making the GPU wait for data. This PR makes an...

enhancement

The speed of `preprocess` is quite significantly improved by using `parallel_apply()` for processing functions' arguments and reducing the depth of parametric types. `parallel_apply()` is used from [pandarallel](https://nalepae.github.io/pandarallel).

The JSON output file is not JSON conformant in two aspects: 1. Single quotes (') are used instead of double quotes(") 2. Some words such as None, True or False...

It would be interesting to see how well the TypeWriter algorithm (https://software-lab.org/publications/TypeWriter_arXiv_1912.03768.pdf) for searching type annotation suggestions works against type4py. We might get dramatically better results for two reasons: -...

Overall: Scripts for processing large datasets have been added. The adding and updating parts include: in the "__main__.py": add new CLI command: "learn_split", "gen_cluster", "infer_projects" in the "vectorize.py": update the...

enhancement

I experimented with the type prediction (http://localhost:5001/api/predict?tc=0) using the provided docker image. I noticed that depending on the analysed source code, I get different amounts of type predictions per parameter/return/variable...