srggrs / sklearn-pos-args-analysis

This code analyse the usage of arguments and keyword arguments in the scikit classes (e.g. `RandomForestClassifier`) used from other repositories.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sklearn-pos-args-analysis

This code analyse the usage of arguments and keyword arguments in the scikit classes (e.g. RandomForestClassifier) used from other repositories.

The code use Python AST to find the numer of args and kargs for a specific Scikit-learn object.

Installation

Install a Python >= 3.6 environment with requirements-py3.txt and a Python == 2.7 environment with requirements-py2.txt.

Usage

After dowloading the python repos in a folder, activate the Python3 environment and run the main code:

python extract-pos-args.py --data-folder PATH_TO_PY_REPOS --py2-exec PATH_TO_PY2_INTERPRETER

Once that script is done run the following to tidy up the data and computing the aggregated data:

python tidy-up-results.py

About

This code analyse the usage of arguments and keyword arguments in the scikit classes (e.g. `RandomForestClassifier`) used from other repositories.

License:GNU General Public License v3.0


Languages

Language:Python 100.0%