Metadata-Version: 2.1
Name: icflow
Version: 0.1.0
Summary: A collection of simple utilities for machine learning workflows.
Author-email: "James Grogan, Irish Centre for High End Computing" <james.grogan@ichec.ie>
Project-URL: Repository, https://git.ichec.ie/performance/toolshed/icflow
Project-URL: Homepage, https://git.ichec.ie/performance/toolshed/icflow
Keywords: Machine Learning,Workflow,HPC
Classifier: Development Status :: 3 - Alpha
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Classifier: Operating System :: OS Independent
Classifier: Topic :: System :: Distributed Computing
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: ictasks==0.1.0
Requires-Dist: icplot==0.0.12
Requires-Dist: numpy
Provides-Extra: test
Requires-Dist: pytest; extra == "test"
Requires-Dist: pytest-cov; extra == "test"
Requires-Dist: pytest-sugar; extra == "test"
Requires-Dist: black; extra == "test"
Requires-Dist: flake8; extra == "test"
Requires-Dist: pylint; extra == "test"
Requires-Dist: mypy; extra == "test"

`icflow` is a Python package with some prototype 'workflow' tools for use in ICHEC.

It is intended to help standardize some of our workflows in areas like Machine Learning by using common utilities, data-formats and data-structures. 

See the project documentation on [ReadTheDocs](https://icflow.readthedocs.io/en/latest/).

# Installation #

It is available on PyPI:

``` shell
pip install icflow
```

# Features #

`icflow` is mostly intended to be used as a library for building workflow tooling - however it has a few CLI applications.

## Parameter Sweep ##

You can define a parameter sweep in a `yaml` file as follows:

``` yaml
title: "my_parameter_sweep"
program: "launch_program"  

parameters:
	param_0 : 1
	param_1 : "my_value"
	param_2 : [1, 2]
	param_3 : ["a", "b"]
```

Running:

``` shell
icflow sweep --config my_config.yaml
```

with this fill will launch the program or script defined by `program`, which should be in the system `PATH`.

The listed parameters are passed as command line arguments to the `program` in the form `--key value`. Parameter value lists are expanded such that there is a program launch for each combination of values in the list. In the above example this will result in the following program launches:

``` shell
launch_program --param_0 1 --param_1 my_value --param_2 1 --param_3 a
launch_program --param_0 1 --param_1 my_value --param_2 2 --param_3 a
launch_program --param_0 1 --param_1 my_value --param_2 1 --param_3 b
launch_program --param_0 1 --param_1 my_value --param_2 2 --param_3 b
```

Program launching is handled internally by ICHEC's [ictasks](https://git.ichec.ie/performance/toolshed/ictasks) library, with each of these program launches handled as a 'task'.

# Copyright

This software is Copyright of the Irish Centre for High End Computing 2024. You can use it under the terms of the GPLv3+. See the included `LICENSE` file for details.
