Skip to content

The replication package for the master's thesis "Improving automated unit test generation for machine learning libraries using structured input data"

License

Notifications You must be signed in to change notification settings

BergLucas/pynguin-for-ML-libraries

Repository files navigation

Pynguin for ML libraries

"Pynguin for ML libraries" is a Master Thesis made by Lucas Berg with the aim of improving Pynguin for generating tests for machine learning libraries.

Download

The project can be downloaded using the following command:

git clone --recurse-submodules https://github.com/BergLucas/pynguin-for-ML-libraries.git

Setting up a development environment

Requirements

The project requires:

Python environment setup

You can setup a Python development environment by running the following commands in the project root:

python -m venv .venv
source .venv/bin/activate
pip install matplotlib==3.8.4 matplotlib-venn==0.11.10 PyLaTeX==1.4.2 scipy==1.13.0 coverage==7.5.1 -e ./pynguin

Setting up a Conda development environment

Requirements

The project requires:

Conda environment setup

You can setup a Conda development environment by running the following commands in the project root:

conda env create -f environment.yml

conda activate pynguin-for-ML-libraries

Example

This example allows you to carry out an experiment to obtain statistics on an improvement of Pynguin.

Requirements

This example requires a development environment to be set up.

Execution

You can execute the example by running the following commands:

pip install -r requirements/requirements.polars.txt

python experiment.py --modules-csv-path modules/polars.csv --results-path results/polars

Example using Docker

This example allows you to carry out an experiment to obtain statistics on an improvement of Pynguin using Docker.

Requirements

This example requires:

Execution

You can execute the example by running the following command:

sh docker_experiment.sh requirements/requirements.polars.txt modules/polars.csv polars

License

All code is licensed for others under a MIT license (see LICENSE).

About

The replication package for the master's thesis "Improving automated unit test generation for machine learning libraries using structured input data"

Resources

License

Stars

Watchers

Forks

Releases

No releases published