Skip to content

Commit

Permalink
#357 build ok + decaf + fastai
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelToman committed Jul 15, 2024
1 parent 7d3e75b commit 16e8855
Show file tree
Hide file tree
Showing 6 changed files with 542 additions and 88 deletions.
49 changes: 49 additions & 0 deletions 357_Synthcity/decaf_0.1.6.eb
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
easyblock = 'PythonBundle'

name = 'DECAF-synthetic-data'
version = '0.1.6'

homepage = 'https://github.com/vanderschaarlab/DECAF'
description = """DEbiasing CAusal Fairness -
Generating Fair Synthetic Data Using Causally-Aware Generative Networks"""

toolchain = {'name': 'foss', 'version': '2023a'}

dependencies = [
('Python', '3.11.3'),
('Python-bundle-PyPI', '2023.06'),
('SciPy-bundle', '2023.07'),
('PyTorch-Lightning', '2.2.1'),
('PyTorch-bundle', '2.1.2'),
('XGBoost', '2.0.2'),
('scikit-learn', '1.3.1'),
('networkx', '3.1'),
]

use_pip = True
sanity_pip_check = True

# unpin dependencies versions
local_preinstallopts = (
"sed -i"
" -e 's/networkx>=2.0,<3.0/networkx/'"
" -e 's/pytorch-lightning<2.0/pytorch-lightning/'"
" %(builddir)s/%(name)s/DECAF-%(version)s/requirements.txt && "
)

exts_list = [
('loguru', '0.7.2', {
'checksums': ['e671a53522515f34fd406340ee968cb9ecafbc4b36c679da03c18fd8d0bd51ac'],
}),
(name, version, {
'modulename': 'decaf',
'preinstallopts': local_preinstallopts,
'source_urls': ['https://github.com/vanderschaarlab/DECAF/archive/'],
'sources': ['v%(version)s.tar.gz'],
'checksums': ['8f34e99937d2ccc43bff97b310c371c450e27313c0801cdd36aa91664c8e3180'],
}),
]

sanity_check_commands = ["python -c 'from decaf import DECAF, DataModule'"]

moduleclass = 'bio'
53 changes: 53 additions & 0 deletions 357_Synthcity/decaf_origo_0.1.1.eb
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
easyblock = 'PythonBundle'

name = 'DECAF-synthetic-data'
version = '0.1.1'
local_commit = "db6333a"

homepage = 'https://github.com/trentkyono/DECAF'
description = """DEbiasing CAusal Fairness."""


toolchain = {'name': 'foss', 'version': '2023a'}

dependencies = [
('Python', '3.11.3'),
('Python-bundle-PyPI', '2023.06'),
('SciPy-bundle', '2023.07'),
('PyTorch-Lightning', '2.2.1'),
('PyTorch-bundle', '2.1.2'),
('XGBoost', '2.0.2'),
('scikit-learn', '1.3.1'),
('networkx', '3.1'),
]

use_pip = True
sanity_pip_check = True

# unpin dependencies versions
local_preinstallopts = (
"sed -i"
" -e 's/networkx == 2.\*/networkx/'"
" -e 's/numpy == 1.19.\*/numpy/'"
" -e 's/pytorch-lightning == 1.4.\*/pytorch-lightning/'"
" -e 's/torch == 1.9.\*/torch/'"
" -e 's/torchtext == 0.10.\*/torchtext/'"
" %(builddir)s/decaf_synthetic_data/DECAF-db6333aced375ef14961e06e805bf7412f378f29/requirements.txt && "
)

exts_list = [
('loguru', '0.7.2', {
'checksums': ['e671a53522515f34fd406340ee968cb9ecafbc4b36c679da03c18fd8d0bd51ac'],
}),
('decaf_synthetic_data', version, {
'modulename': 'decaf',
'preinstallopts': local_preinstallopts,
'source_urls': ['https://github.com/trentkyono/DECAF/archive/'],
'sources': [{'download_filename': 'db6333a.tar.gz', 'filename': '%(name)s-%(version)s-db6333a.tar.gz'}],
'checksums': ['9df50a5b4ee96a6dcf53e2d845702ad48ebdbb0a31bb0cb2968b2217a1c8886e'],
}),
]

sanity_check_commands = ["python -c 'from decaf import DECAF, DataModule'"]

moduleclass = 'bio'
41 changes: 41 additions & 0 deletions 357_Synthcity/fastai.eb
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
easyblock = 'PythonBundle'

name = 'fastai'
version = '2.7.15'

homepage = 'https://www.fast.ai/'
description = """The fastai deep learning library."""

toolchain = {'name': 'foss', 'version': '2023a'}

use_pip = True

dependencies = [
('Python', '3.11.3'),
('PyTorch-bundle', '2.1.2'),
('matplotlib', '3.7.2'),
('SciPy-bundle', '2023.07'),
('PyYAML', '6.0'),
('Pillow', '10.0.0'),
('scikit-learn', '1.3.1'),
('spaCy', '3.7.4'),
]

exts_list = [
('fastdownload', '0.0.7', {
'checksums': ['20507edb8e89406a1fbd7775e6e2a3d81a4dd633dd506b0e9cf0e1613e831d6a'],
}),
('fastcore', '1.5.54', {
'checksums': ['3f23dfadd77428be99558fdad66bf04c79a9c626e694c7404ede816ed8372987'],
}),
('fastprogress', '1.0.3', {
'checksums': ['7a17d2b438890f838c048eefce32c4ded47197ecc8ea042cecc33d3deb8022f5'],
}),
(name, version, {
'checksums': ['f2cc20fd18cdf5ec738cc56d29d54de75887d48ad15f9d35cf50c38d3a856923'],
}),
]

sanity_pip_check = True

moduleclass = 'lib'
7 changes: 4 additions & 3 deletions 357_Synthcity/lifelines.eb
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
easyblock = 'PythonBundle'

name = 'lifelines'
version = '0.29.0'
version = '0.28.0'

homepage = "https://lifelines.readthedocs.io/en/latest/"
description = """lifelines is a complete survival analysis library, written in pure Python."""

toolchain = {'name': 'foss', 'version': '2023a'}

builddependencies = [('poetry', '1.5.1')]
dependencies = [
('Python', '3.11.3'),
('SciPy-bundle', '2023.07'),
('matplotlib', '3.7.2'),
]

sanity_pip_check = True
use_pip = True
sanity_pip_check = True

exts_list = [
('wrapt', '1.16.0', {
Expand All @@ -37,7 +38,7 @@ exts_list = [
'checksums': ['64dd7992a7aa5bbceb1e40679d0f01fc6f0ba12b7d23d78094a88c2edc68fba1'],
}),
(name, version, {
'checksums': ['a82315a5daf2ad29eabefff38b8422364a8a721721136a501c30ff861cac8759'],
'checksums': ['eecf726453fd409c94fef8a521f8e593bcd09337f920fe885131f01cfe58b25e'],
}),
]

Expand Down
Loading

0 comments on commit 16e8855

Please sign in to comment.