Skip to main content

A collection of simple utilities for machine learning workflows.

Project description

icflow is a Python package with some prototype workflow tools for use at the Irish Centre for High End Computing (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.

Features

Parameter Sweep

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

title: "my_parameter_sweep"
program: "launch_program"  

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

Running:

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:

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 library, with each of these program launches handled as a 'task'.

Running sweeps in parallel

You can also specify details about the number of gpu/cpu s available for running tasks by including the config and inner task_distribution sections in the sweep config This can allow for tasks to be run in parallel, see a description in ictasks covering this task_distribution and using gpus in your tasks.

title: ...
program: ... 

parameters:
    ...

config:
    task_distribution:
        ...

Installation

It is available on PyPI:

pip install icflow

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

icflow-0.2.2.tar.gz (32.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

icflow-0.2.2-py3-none-any.whl (36.7 kB view details)

Uploaded Python 3

File details

Details for the file icflow-0.2.2.tar.gz.

File metadata

  • Download URL: icflow-0.2.2.tar.gz
  • Upload date:
  • Size: 32.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for icflow-0.2.2.tar.gz
Algorithm Hash digest
SHA256 048d50bae28a078448f667c1d78c6d9ea09d5daabef6fe75bce12f4f01465601
MD5 c77faa753c48b92d9d3341cf5e8b087b
BLAKE2b-256 52a0335b98c019551587b5c0f5a3c05a28faddf8ac5447c2216f30bc71da3546

See more details on using hashes here.

File details

Details for the file icflow-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: icflow-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 36.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for icflow-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8d33bb724bbac20a4ccd27e5c06c7391f0e9d800023aaa9e578eead55a3defbb
MD5 b756eeafe17cb07c7a1ee5874fb5116c
BLAKE2b-256 df681835735095ffdc8166ee80699bf066d7d9b86edb593464c387ed52e4df64

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page