Skip to content

Commit

Permalink
#357 synthcity with wotking test cmd + fix unnecessary deps
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelToman committed Jul 22, 2024
1 parent 9ce0cc4 commit 745d48f
Showing 1 changed file with 54 additions and 49 deletions.
103 changes: 54 additions & 49 deletions 357_Synthcity/synthcity.eb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ toolchain = {'name': 'foss', 'version': '2023a'}
# pydantic<2.0 - v2.5.3 -> unpin
# cloudpickle - ok in SHAP
# scipy ok
# xgboost<2.0.0 - v2.0.2 -> unpin
# xgboost<2.0.0 - v2.0.2 -> unpin -> error -> try build v1.7.2 and use it
# geomloss ok exts
# pgmpy ok exts
# networkx OK
Expand Down Expand Up @@ -151,7 +151,7 @@ dependencies = [
('coverage', '7.2.3'),
('py-cpuinfo', '9.0.0'),
('pycodestyle', '2.11.1'),
('hypothesis', '6.82.0'),
# ('hypothesis', '6.82.0'),
]

sanity_pip_check = True
Expand All @@ -178,46 +178,46 @@ local_xgbse_preinstallopts = (
)

exts_list = [
('cython-test-exception-raiser', '1.0.2', {
'checksums': ['c5003a6321057a8222d2f5aed329fcdb5eb3bc615a9239f461bdf06c491fbdaa'],
}),
('pyhamcrest', '2.1.0', {
'modulename': 'hamcrest',
'checksums': ['c6acbec0923d0cb7e72c22af1926f3e7c97b8e8d69fc7498eabacaf7c975bd9c'],
}),
('service_identity', '24.1.0', {
'checksums': ['6829c9d62fb832c2e1c435629b0a8c476e1929881f28bee4d20bc24161009221'],
}),
('zope.interface', '6.3', {
'checksums': ['f83d6b4b22262d9a826c3bd4b2fbfafe1d0000f085ef8e44cd1328eea274ae6a'],
}),
('hyperlink', '21.0.0', {
'checksums': ['427af957daa58bc909471c6c40f74c5450fa123dd093fc53efd2e91d2705a56b'],
}),
('constantly', '23.10.4', {
'checksums': ['aa92b70a33e2ac0bb33cd745eb61776594dc48764b06c35e0efd050b7f1c7cbd'],
}),
('Automat', '22.10.0', {
'checksums': ['e56beb84edad19dcc11d30e8d9b895f75deeb5ef5e96b84a467066b3b84bb04e'],
}),
('incremental', '22.10.0', {
'checksums': ['912feeb5e0f7e0188e6f42241d2f450002e11bbc0937c65865045854c24c0bd0'],
}),
('twisted', '24.3.0', {
'checksums': ['6b38b6ece7296b5e122c9eb17da2eeab3d98a198f50ca9efd00fb03e5b4fd4ae'],
}),
('fixtures', '4.1.0', {
'checksums': ['82b1c5e69f615526ef6c067188a1e6c6067df7f88332509c99f8b8fdbb9776f3'],
}),
('testscenarios', '0.5.0', {
'checksums': ['c257cb6b90ea7e6f8fef3158121d430543412c9a87df30b5dde6ec8b9b57a2b6'],
}),
('evaluate', '0.4.2', {
'checksums': ['851ab767df8ec4031366c512eb88d8174adfba65d2c8c4c9bfdfe9c702212234'],
}),
('testtools', '2.7.2', {
'checksums': ['5be5bbc1f0fa0f8b60aca6ceec07845d41d0c475cf445bfadb4d2c45ec397ea3'],
}),
# ('cython-test-exception-raiser', '1.0.2', {
# 'checksums': ['c5003a6321057a8222d2f5aed329fcdb5eb3bc615a9239f461bdf06c491fbdaa'],
# }),
# ('pyhamcrest', '2.1.0', {
# 'modulename': 'hamcrest',
# 'checksums': ['c6acbec0923d0cb7e72c22af1926f3e7c97b8e8d69fc7498eabacaf7c975bd9c'],
# }),
# ('service_identity', '24.1.0', {
# 'checksums': ['6829c9d62fb832c2e1c435629b0a8c476e1929881f28bee4d20bc24161009221'],
# }),
# ('zope.interface', '6.3', {
# 'checksums': ['f83d6b4b22262d9a826c3bd4b2fbfafe1d0000f085ef8e44cd1328eea274ae6a'],
# }),
# ('hyperlink', '21.0.0', {
# 'checksums': ['427af957daa58bc909471c6c40f74c5450fa123dd093fc53efd2e91d2705a56b'],
# }),
# ('constantly', '23.10.4', {
# 'checksums': ['aa92b70a33e2ac0bb33cd745eb61776594dc48764b06c35e0efd050b7f1c7cbd'],
# }),
# ('Automat', '22.10.0', {
# 'checksums': ['e56beb84edad19dcc11d30e8d9b895f75deeb5ef5e96b84a467066b3b84bb04e'],
# }),
# ('incremental', '22.10.0', {
# 'checksums': ['912feeb5e0f7e0188e6f42241d2f450002e11bbc0937c65865045854c24c0bd0'],
# }),
# ('twisted', '24.3.0', {
# 'checksums': ['6b38b6ece7296b5e122c9eb17da2eeab3d98a198f50ca9efd00fb03e5b4fd4ae'],
# }),
# ('fixtures', '4.1.0', {
# 'checksums': ['82b1c5e69f615526ef6c067188a1e6c6067df7f88332509c99f8b8fdbb9776f3'],
# }),
# ('testscenarios', '0.5.0', {
# 'checksums': ['c257cb6b90ea7e6f8fef3158121d430543412c9a87df30b5dde6ec8b9b57a2b6'],
# }),
# ('evaluate', '0.4.2', {
# 'checksums': ['851ab767df8ec4031366c512eb88d8174adfba65d2c8c4c9bfdfe9c702212234'],
# }),
# ('testtools', '2.7.2', {
# 'checksums': ['5be5bbc1f0fa0f8b60aca6ceec07845d41d0c475cf445bfadb4d2c45ec397ea3'],
# }),
('cfgv', '3.4.0', {
'checksums': ['e52591d4c5f5dead8e0f673fb16db7949d2cfb3f7da4582893288f0ded8fe560'],
}),
Expand Down Expand Up @@ -375,15 +375,12 @@ exts_list = [
'source_urls': ['https://github.com/vanderschaarlab/synthcity/archive/'],
'sources': ['v%(version)s.tar.gz'],
'testinstall': True,
'runtest': 'pytest -vvvs -m "not slow" --durations=50',
# 'runtest': 'pytest -vvvs -m "not slow" --durations=50',
'checksums': ['122a8546cad35e3ac5c74cf81281252dec4dd3c7b1d7afe0f45ef785f89cc682'],
}),
]

# 'testinstall': True,
# 'runtest': 'export PYTHONPATH=%(installdir)s/lib/python%(pyshortver)s/site-packages:$PYTHONPATH && pytest -vvvs -m "not slow" --durations=50',
sanity_check_commands = [
# 'pytest -vvvs -m "not slow" --durations=50',
"python -c 'from synthcity.plugins import Plugins'",
"python -c 'from decaf import DECAF, DataModule'"
]
Expand Down Expand Up @@ -423,6 +420,8 @@ moduleclass = 'lib'

# same for: tests/plugins/privacy/test_decaf.py::test_plugin_generate[test_plugin2] FAILED

# -> for problem with sklearn look: https://stackoverflow.com/questions/76713605/using-mutual-info-classif-for-continuous-features-and-discrete-target

# tests/plugins/privacy/test_dpgan.py::test_plugin_generate[True-test_plugin1]
# 0%| | 0/10 [00:00<?, ?it/s]
# 0%| | 0/10 [00:00<?, ?it/s]
Expand Down Expand Up @@ -455,6 +454,7 @@ moduleclass = 'lib'
# 0%| | 0/10 [00:00<?, ?it/s]
# 0%| | 0/10 [00:00<?, ?it/s]
# FAILED
# -> dpgan: https://github.com/vanderschaarlab/evaluating-generative-models/blob/093910e487d07959db7d87b54698da60aaeb50c0/requirements_dpgan.txt#L2

# tests/plugins/time_series/test_timegan.py::test_plugin_generate_static_cond[source0]
# 0%| | 0/10 [00:00<?, ?it/s]
Expand Down Expand Up @@ -484,11 +484,16 @@ moduleclass = 'lib'
# 100%|| 10/10 [00:05<00:00, 1.79it/s]
# 100%|| 10/10 [00:05<00:00, 1.77it/s]
# FAILED
# -> timegan plugin in synthcity: https://github.com/vanderschaarlab/synthcity/blob/v0.2.10/src/synthcity/plugins/time_series/plugin_timegan.py

# E AttributeError: `best_iteration` is only defined when early stopping is used.
# -> seems as problem with xgboost v2: https://github.com/microsoft/FLAML/issues/1217
# E AttributeError: module 'pydantic' has no attribute 'pydantic_core'
# -> pydantic_core should be in pydantic
# E AttributeError: 'DPOptimizer' object has no attribute '_optimizer_step_pre_hooks'
# -> seems as a problem with PyTorch: https://github.com/pytorch/opacus/issues/377
# E ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (50,) + inhomogeneous part.
# -> problem with too new numpy? https://stackoverflow.com/questions/67183501/setting-an-array-element-with-a-sequence-requested-array-has-an-inhomogeneous-sh

# ============================================== short test summary info ===============================================
# FAILED tests/metrics/test_performance.py::test_evaluate_performance_time_series_survival[PerformanceEvaluatorXGB-test_plugin0]
Expand All @@ -510,9 +515,9 @@ moduleclass = 'lib'
# FAILED tests/plugins/time_series/test_timegan.py::test_plugin_generate_static_cond[source0] - ValueError: setting a...
# FAILED tests/plugins/time_series/test_timegan.py::test_plugin_generate_static_cond[source1] - ValueError: setting a...
# ======== 18 failed, 2141 passed, 13 skipped, 103 deselected, 2 xfailed, 2316 warnings in 15511.26s (4:18:31) =========

# ERROR5:
# -> Delete this - seems is not from synthcity but fro others packages
# ERROR5: OK
# -> Delete this - seems is not from synthcity but from others packages
# Pytest in sanity check cmds:
# ModuleNotFoundError: No module named 'cython_test_exception_raiser' ok
# ModuleNotFoundError: No module named 'hamcrest' ok
Expand Down

0 comments on commit 745d48f

Please sign in to comment.