diff --git a/.gitattributes b/.gitattributes index e385ead0181d8508e63738f9e4d3a39da792437e..7410dd820cf7e8dca29e3e87f04e19e8a5b16fbf 100644 --- a/.gitattributes +++ b/.gitattributes @@ -3008,3 +3008,24 @@ SynthData0523/main/c2/ctgan/ctgan-c2-20260501_070350/public_gate/public_gate_rep SynthData0523/main/c2/ctgan/ctgan-c2-20260501_070350/public_gate/staged_input_manifest.json filter=lfs diff=lfs merge=lfs -text SynthData0523/main/c2/ctgan/ctgan-c2-20260501_070350/runtime_result.json filter=lfs diff=lfs merge=lfs -text SynthData0523/main/c2/ctgan/ctgan-c2-20260501_070350/staged/ctgan/adapter_report.json filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c2/ctgan/ctgan-c2-20260501_070350/staged/ctgan/adapter_transforms_applied.json filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c2/ctgan/ctgan-c2-20260501_070350/staged/ctgan/model_input_manifest.json filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c2/ctgan/ctgan-c2-20260501_070350/staged/public/staged_features.json filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c2/ctgan/ctgan-c2-20260501_070350/staged/public/test.csv filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c2/ctgan/ctgan-c2-20260501_070350/staged/public/train.csv filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c2/ctgan/ctgan-c2-20260501_070350/staged/public/val.csv filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152304/ctgan-c2-1382-20260504_152353.csv filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152304/gen_20260504_152353.log filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152304/models_50epochs/ctgan_50epochs.pt filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152304/models_50epochs/train_20260504_152304.log filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152304/staged/public/test.csv filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152304/staged/public/train.csv filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152304/staged/public/val.csv filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152412/ctgan-c2-1382-20260504_152503.csv filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152412/gen_20260504_152503.log filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152412/models_100epochs/ctgan_100epochs.pt filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152412/models_100epochs/train_20260504_152412.log filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152412/staged/public/test.csv filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152412/staged/public/train.csv filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152412/staged/public/val.csv filter=lfs diff=lfs merge=lfs -text +SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152521/ctgan-c2-1382-20260504_152602.csv filter=lfs diff=lfs merge=lfs -text diff --git a/SynthData0523/main/c2/ctgan/ctgan-c2-20260501_070350/staged/ctgan/adapter_transforms_applied.json b/SynthData0523/main/c2/ctgan/ctgan-c2-20260501_070350/staged/ctgan/adapter_transforms_applied.json new file mode 100644 index 0000000000000000000000000000000000000000..6f3aaa01a627a955d2022165805d2786c0da78ba --- /dev/null +++ b/SynthData0523/main/c2/ctgan/ctgan-c2-20260501_070350/staged/ctgan/adapter_transforms_applied.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945 +size 2 diff --git a/SynthData0523/main/c2/ctgan/ctgan-c2-20260501_070350/staged/ctgan/model_input_manifest.json b/SynthData0523/main/c2/ctgan/ctgan-c2-20260501_070350/staged/ctgan/model_input_manifest.json new file mode 100644 index 0000000000000000000000000000000000000000..f22f6537bb3139892323ce29335d9c9b6bfe12e8 --- /dev/null +++ b/SynthData0523/main/c2/ctgan/ctgan-c2-20260501_070350/staged/ctgan/model_input_manifest.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0b224c47a37c282fdd29e5748a4a31b415e3adda43beeb37549cd05a13ae5a55 +size 4130 diff --git a/SynthData0523/main/c2/ctgan/ctgan-c2-20260501_070350/staged/public/staged_features.json b/SynthData0523/main/c2/ctgan/ctgan-c2-20260501_070350/staged/public/staged_features.json new file mode 100644 index 0000000000000000000000000000000000000000..96ce2fcc5c1b712d1baabe9a6462bb9c882c30fc --- /dev/null +++ b/SynthData0523/main/c2/ctgan/ctgan-c2-20260501_070350/staged/public/staged_features.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:37511511f1d7cb0e004f9d7305c900644ebefe672c9a1a418c1f29b36786fabd +size 659 diff --git a/SynthData0523/main/c2/ctgan/ctgan-c2-20260501_070350/staged/public/test.csv b/SynthData0523/main/c2/ctgan/ctgan-c2-20260501_070350/staged/public/test.csv new file mode 100644 index 0000000000000000000000000000000000000000..392a0d7189a34d8f13ecf20a99d64b03230d517c --- /dev/null +++ b/SynthData0523/main/c2/ctgan/ctgan-c2-20260501_070350/staged/public/test.csv @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b48114a7d0bc5bd9a07920f903c8d4aba8bf98bf2a66a050da03588b0245ca73 +size 5273 diff --git a/SynthData0523/main/c2/ctgan/ctgan-c2-20260501_070350/staged/public/train.csv b/SynthData0523/main/c2/ctgan/ctgan-c2-20260501_070350/staged/public/train.csv new file mode 100644 index 0000000000000000000000000000000000000000..da4f4d55134eebc0e51157d0d467536371db1484 --- /dev/null +++ b/SynthData0523/main/c2/ctgan/ctgan-c2-20260501_070350/staged/public/train.csv @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4aed00c2c2b3f88a55a7ebff31b2e1b5e0e32fb0a7267e0b9d2779cd23e434dd +size 41565 diff --git a/SynthData0523/main/c2/ctgan/ctgan-c2-20260501_070350/staged/public/val.csv b/SynthData0523/main/c2/ctgan/ctgan-c2-20260501_070350/staged/public/val.csv new file mode 100644 index 0000000000000000000000000000000000000000..af8caf7ee42524188534a3daf32996dc491952d9 --- /dev/null +++ b/SynthData0523/main/c2/ctgan/ctgan-c2-20260501_070350/staged/public/val.csv @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:26e90c1170a57a14c05832ac88027722b1f3848f9662c7c09ef7c93dcba4cc01 +size 5176 diff --git a/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152304/_ctgan_generate.py b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152304/_ctgan_generate.py new file mode 100644 index 0000000000000000000000000000000000000000..72d631b335a5126d37d39b7ce8a5a7267f2a06ad --- /dev/null +++ b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152304/_ctgan_generate.py @@ -0,0 +1,18 @@ +import sys +sys.path.insert(0, "/work") +from src.SpecificModels.ctgan_rdt_inverse_fix import apply_ctgan_inverse_fix +apply_ctgan_inverse_fix() +import pandas as pd +from ctgan.synthesizers.ctgan import CTGAN +model = CTGAN.load("/work/output-Benchmark-trainonly-v1/c2/ctgan/ctgan-c2-20260504_152304/models_50epochs/ctgan_50epochs.pt") +total = 1382 +chunk = min(50000, total) if total > 50000 else total +parts = [] +left = total +while left > 0: + take = min(chunk, left) + parts.append(model.sample(take)) + left -= take +sampled = pd.concat(parts, ignore_index=True) if len(parts) > 1 else parts[0] +sampled.to_csv("/work/output-Benchmark-trainonly-v1/c2/ctgan/ctgan-c2-20260504_152304/ctgan-c2-1382-20260504_152353.csv", index=False) +print("[CTGAN] Generated", total, "rows in", len(parts), "chunks ->", "/work/output-Benchmark-trainonly-v1/c2/ctgan/ctgan-c2-20260504_152304/ctgan-c2-1382-20260504_152353.csv") \ No newline at end of file diff --git a/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152304/_ctgan_train.py b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152304/_ctgan_train.py new file mode 100644 index 0000000000000000000000000000000000000000..6b9b4676792febe944a8372bf1283e47afc4c4dd --- /dev/null +++ b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152304/_ctgan_train.py @@ -0,0 +1,17 @@ +import pandas as pd +from ctgan.synthesizers.ctgan import CTGAN + +data = pd.read_csv("/work/output-Benchmark-trainonly-v1/c2/ctgan/ctgan-c2-20260504_152304/staged/public/train.csv") +discrete_columns = ['buying', 'maint', 'doors', 'persons', 'lug_boot', 'safety', 'class'] +model = CTGAN( + embedding_dim=8, + generator_dim=(16, 16), + discriminator_dim=(16, 16), + batch_size=32, + pac=1, + epochs=50, + verbose=True, +) +model.fit(data, discrete_columns) +model.save("/work/output-Benchmark-trainonly-v1/c2/ctgan/ctgan-c2-20260504_152304/models_50epochs/ctgan_50epochs.pt") +print("[CTGAN] Saved model ->", "/work/output-Benchmark-trainonly-v1/c2/ctgan/ctgan-c2-20260504_152304/models_50epochs/ctgan_50epochs.pt") \ No newline at end of file diff --git a/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152304/ctgan-c2-1382-20260504_152353.csv b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152304/ctgan-c2-1382-20260504_152353.csv new file mode 100644 index 0000000000000000000000000000000000000000..681e27aa7742ed0c684b00f71f3be788e0e869d8 --- /dev/null +++ b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152304/ctgan-c2-1382-20260504_152353.csv @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:29e976f587efbc955df869946a4bb105ce51b79458d3c62ceca09ac148b6ed20 +size 41616 diff --git a/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152304/ctgan_metadata.json b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152304/ctgan_metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..183d627ebc98e89233655ec98c9dcbc528c4c328 --- /dev/null +++ b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152304/ctgan_metadata.json @@ -0,0 +1,32 @@ +{ + "columns": [ + { + "name": "buying", + "type": "categorical" + }, + { + "name": "maint", + "type": "categorical" + }, + { + "name": "doors", + "type": "categorical" + }, + { + "name": "persons", + "type": "categorical" + }, + { + "name": "lug_boot", + "type": "categorical" + }, + { + "name": "safety", + "type": "categorical" + }, + { + "name": "class", + "type": "categorical" + } + ] +} \ No newline at end of file diff --git a/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152304/gen_20260504_152353.log b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152304/gen_20260504_152353.log new file mode 100644 index 0000000000000000000000000000000000000000..de002e4b88e95acd9bc50ca032cc0ba1f0b86e39 --- /dev/null +++ b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152304/gen_20260504_152353.log @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9acf86561cff1e9c6a4c9c06233f1f9190b7ed2b840fc2e34e276dbd370ea385 +size 297 diff --git a/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152304/input_snapshot.json b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152304/input_snapshot.json new file mode 100644 index 0000000000000000000000000000000000000000..e70c6b5c1d7c7363c5970bab5156163411d211e7 --- /dev/null +++ b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152304/input_snapshot.json @@ -0,0 +1,36 @@ +{ + "dataset_id": "c2", + "model": "ctgan", + "inputs": { + "train_csv": { + "path": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/c2/c2-train.csv", + "exists": true, + "size": 42948, + "sha256": "17bc560fa96bd00fb3b526e1e65bc91210b701d0d0a4e8bb9b4c5196cab56def" + }, + "val_csv": { + "path": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/c2/c2-val.csv", + "exists": true, + "size": 5349, + "sha256": "61e565eca62e65a7dccd9d51039a3170413379e10fc494e25870e7c4294863c9" + }, + "test_csv": { + "path": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/c2/c2-test.csv", + "exists": true, + "size": 5448, + "sha256": "cbcbb062a1faf5fa44b66c80532baa229e05b94fc42137269761e6c6d84af20a" + }, + "profile_json": { + "path": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/artifacts/data_core/tabular/c2/c2-dataset_profile.json", + "exists": true, + "size": 3240, + "sha256": "526b7163b2076c93c0bf4638438081ee8a6907065d5b608faa40d1a3dbc2a27b" + }, + "contract_json": { + "path": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/artifacts/data_core/tabular/c2/c2-dataset_contract_v1.json", + "exists": true, + "size": 3731, + "sha256": "fb595a876054c2ee9b4e10cfe83a5691588de1d25466cbb9d473c18ad3604009" + } + } +} \ No newline at end of file diff --git a/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152304/models_50epochs/ctgan_50epochs.pt b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152304/models_50epochs/ctgan_50epochs.pt new file mode 100644 index 0000000000000000000000000000000000000000..e36636095420ce570b0bfe9047133f9ba54849ac --- /dev/null +++ b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152304/models_50epochs/ctgan_50epochs.pt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:39c7bef1dfa571bec7a879d742cb40f266707e489676ce3b74528b1c78d49d51 +size 279437 diff --git a/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152304/models_50epochs/train_20260504_152304.log b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152304/models_50epochs/train_20260504_152304.log new file mode 100644 index 0000000000000000000000000000000000000000..31881c865e73fc7a604711f229b0138561760091 --- /dev/null +++ b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152304/models_50epochs/train_20260504_152304.log @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:34ee1fa8c63c912749b01e9ecd9d79d28d46671f3739ed5d339a692b3f263b85 +size 10893 diff --git a/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152304/public_gate/normalized_schema_snapshot.json b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152304/public_gate/normalized_schema_snapshot.json new file mode 100644 index 0000000000000000000000000000000000000000..689b1d00d96508e44ba40e58dc4560e19afc2b3b --- /dev/null +++ b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152304/public_gate/normalized_schema_snapshot.json @@ -0,0 +1,144 @@ +{ + "dataset_id": "c2", + "target_column": "class", + "task_type": "classification", + "columns": [ + { + "name": "buying", + "role": "feature", + "semantic_type": "categorical", + "nullable": false, + "missing_tokens": [], + "parse_format": null, + "impute_strategy": "mode", + "profile_stats": { + "missing_rate": 0.0, + "unique_count": 4, + "unique_ratio": 0.002894, + "example_values": [ + "vhigh", + "med", + "high", + "low" + ] + } + }, + { + "name": "maint", + "role": "feature", + "semantic_type": "categorical", + "nullable": false, + "missing_tokens": [], + "parse_format": null, + "impute_strategy": "mode", + "profile_stats": { + "missing_rate": 0.0, + "unique_count": 4, + "unique_ratio": 0.002894, + "example_values": [ + "vhigh", + "low", + "med", + "high" + ] + } + }, + { + "name": "doors", + "role": "feature", + "semantic_type": "categorical", + "nullable": false, + "missing_tokens": [], + "parse_format": null, + "impute_strategy": "mode", + "profile_stats": { + "missing_rate": 0.0, + "unique_count": 4, + "unique_ratio": 0.002894, + "example_values": [ + "2", + "5more", + "3", + "4" + ] + } + }, + { + "name": "persons", + "role": "feature", + "semantic_type": "categorical", + "nullable": false, + "missing_tokens": [], + "parse_format": null, + "impute_strategy": "mode", + "profile_stats": { + "missing_rate": 0.0, + "unique_count": 3, + "unique_ratio": 0.002171, + "example_values": [ + "2", + "4", + "more" + ] + } + }, + { + "name": "lug_boot", + "role": "feature", + "semantic_type": "categorical", + "nullable": false, + "missing_tokens": [], + "parse_format": null, + "impute_strategy": "mode", + "profile_stats": { + "missing_rate": 0.0, + "unique_count": 3, + "unique_ratio": 0.002171, + "example_values": [ + "small", + "big", + "med" + ] + } + }, + { + "name": "safety", + "role": "feature", + "semantic_type": "categorical", + "nullable": false, + "missing_tokens": [], + "parse_format": null, + "impute_strategy": "mode", + "profile_stats": { + "missing_rate": 0.0, + "unique_count": 3, + "unique_ratio": 0.002171, + "example_values": [ + "low", + "high", + "med" + ] + } + }, + { + "name": "class", + "role": "target", + "semantic_type": "categorical", + "nullable": false, + "missing_tokens": [], + "parse_format": null, + "impute_strategy": "mode", + "profile_stats": { + "missing_rate": 0.0, + "unique_count": 4, + "unique_ratio": 0.002894, + "example_values": [ + "unacc", + "good", + "acc", + "vgood" + ] + } + } + ] +} \ No newline at end of file diff --git a/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152304/public_gate/public_gate_report.json b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152304/public_gate/public_gate_report.json new file mode 100644 index 0000000000000000000000000000000000000000..2e4cdcb2a4e28e40d59b17a83e773f622b7636a5 --- /dev/null +++ b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152304/public_gate/public_gate_report.json @@ -0,0 +1,37 @@ +{ + "dataset_id": "c2", + "status": "pass", + "checks": [ + { + "check_id": "PG001_csv_parse_ok", + "status": "pass" + }, + { + "check_id": "PG002_split_header_consistent", + "status": "pass" + }, + { + "check_id": "PG003_profile_header_match", + "status": "pass" + }, + { + "check_id": "PG004_missing_token_normalized", + "status": "pass" + }, + { + "check_id": "PG005_semantic_type_validated", + "status": "pass" + }, + { + "check_id": "PG006_target_defined_and_valid", + "status": "pass" + } + ], + "target_column": "class", + "task_type": "classification", + "input_splits": { + "train": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/c2/c2-train.csv", + "val": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/c2/c2-val.csv", + "test": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/c2/c2-test.csv" + } +} \ No newline at end of file diff --git a/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152304/public_gate/staged_input_manifest.json b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152304/public_gate/staged_input_manifest.json new file mode 100644 index 0000000000000000000000000000000000000000..9adffa84c9a982333c5e541977c7b6dc9bc69810 --- /dev/null +++ b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152304/public_gate/staged_input_manifest.json @@ -0,0 +1,149 @@ +{ + "dataset_id": "c2", + "target_column": "class", + "task_type": "classification", + "train_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/ctgan/ctgan-c2-20260504_152304/staged/public/train.csv", + "val_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/ctgan/ctgan-c2-20260504_152304/staged/public/val.csv", + "test_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/ctgan/ctgan-c2-20260504_152304/staged/public/test.csv", + "features_json": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/ctgan/ctgan-c2-20260504_152304/staged/public/staged_features.json", + "public_gate_report": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/ctgan/ctgan-c2-20260504_152304/public_gate/public_gate_report.json", + "column_schema": [ + { + "name": "buying", + "role": "feature", + "semantic_type": "categorical", + "nullable": false, + "missing_tokens": [], + "parse_format": null, + "impute_strategy": "mode", + "profile_stats": { + "missing_rate": 0.0, + "unique_count": 4, + "unique_ratio": 0.002894, + "example_values": [ + "vhigh", + "med", + "high", + "low" + ] + } + }, + { + "name": "maint", + "role": "feature", + "semantic_type": "categorical", + "nullable": false, + "missing_tokens": [], + "parse_format": null, + "impute_strategy": "mode", + "profile_stats": { + "missing_rate": 0.0, + "unique_count": 4, + "unique_ratio": 0.002894, + "example_values": [ + "vhigh", + "low", + "med", + "high" + ] + } + }, + { + "name": "doors", + "role": "feature", + "semantic_type": "categorical", + "nullable": false, + "missing_tokens": [], + "parse_format": null, + "impute_strategy": "mode", + "profile_stats": { + "missing_rate": 0.0, + "unique_count": 4, + "unique_ratio": 0.002894, + "example_values": [ + "2", + "5more", + "3", + "4" + ] + } + }, + { + "name": "persons", + "role": "feature", + "semantic_type": "categorical", + "nullable": false, + "missing_tokens": [], + "parse_format": null, + "impute_strategy": "mode", + "profile_stats": { + "missing_rate": 0.0, + "unique_count": 3, + "unique_ratio": 0.002171, + "example_values": [ + "2", + "4", + "more" + ] + } + }, + { + "name": "lug_boot", + "role": "feature", + "semantic_type": "categorical", + "nullable": false, + "missing_tokens": [], + "parse_format": null, + "impute_strategy": "mode", + "profile_stats": { + "missing_rate": 0.0, + "unique_count": 3, + "unique_ratio": 0.002171, + "example_values": [ + "small", + "big", + "med" + ] + } + }, + { + "name": "safety", + "role": "feature", + "semantic_type": "categorical", + "nullable": false, + "missing_tokens": [], + "parse_format": null, + "impute_strategy": "mode", + "profile_stats": { + "missing_rate": 0.0, + "unique_count": 3, + "unique_ratio": 0.002171, + "example_values": [ + "low", + "high", + "med" + ] + } + }, + { + "name": "class", + "role": "target", + "semantic_type": "categorical", + "nullable": false, + "missing_tokens": [], + "parse_format": null, + "impute_strategy": "mode", + "profile_stats": { + "missing_rate": 0.0, + "unique_count": 4, + "unique_ratio": 0.002894, + "example_values": [ + "unacc", + "good", + "acc", + "vgood" + ] + } + } + ] +} \ No newline at end of file diff --git a/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152304/run_config.json b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152304/run_config.json new file mode 100644 index 0000000000000000000000000000000000000000..fb41d8bc3413589c05aaeab9ea2b38014b7b853b --- /dev/null +++ b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152304/run_config.json @@ -0,0 +1,46 @@ +{ + "schema_version": 1, + "recorded_at": "2026-05-04T15:23:04", + "dataset_id": "c2", + "model": "ctgan", + "work_dir": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/ctgan/ctgan-c2-20260504_152304", + "dataset_source_requested": "new", + "dataset_source_resolved": "new", + "cli_args": { + "model": "ctgan", + "dataset": "c2", + "dataset_source": "new", + "train": true, + "generate": true, + "num_rows": 0, + "epochs": null, + "output_dir": null, + "model_dir": null, + "work_dir": null, + "resume": false, + "no_stats": false + }, + "resolved": { + "num_rows": 1382, + "model_path": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/ctgan/ctgan-c2-20260504_152304/models_50epochs/ctgan_50epochs.pt", + "output_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/ctgan/ctgan-c2-20260504_152304/ctgan-c2-1382-20260504_152353.csv" + }, + "input_artifacts": { + "public_gate_report": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/ctgan/ctgan-c2-20260504_152304/public_gate/public_gate_report.json", + "public_manifest": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/ctgan/ctgan-c2-20260504_152304/public_gate/staged_input_manifest.json", + "model_manifest": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/ctgan/ctgan-c2-20260504_152304/staged/ctgan/model_input_manifest.json", + "train_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/ctgan/ctgan-c2-20260504_152304/staged/public/train.csv", + "features_json": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/ctgan/ctgan-c2-20260504_152304/staged/public/staged_features.json", + "target_column": "class", + "task_type": "classification" + }, + "env_overrides": { + "BENCHMARK_CTGAN_GPUS": "device=3", + "CTGAN_BATCH_SIZE": "32", + "CTGAN_DEFAULT_EPOCHS": "50", + "CTGAN_DISCRIMINATOR_DIMS": "16,16", + "CTGAN_EMBEDDING_DIM": "8", + "CTGAN_GENERATOR_DIMS": "16,16", + "CTGAN_PAC": "1" + } +} \ No newline at end of file diff --git a/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152304/runtime_result.json b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152304/runtime_result.json new file mode 100644 index 0000000000000000000000000000000000000000..d04243918b6cf71cea8be69dbd1ac322df2d0d9b --- /dev/null +++ b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152304/runtime_result.json @@ -0,0 +1,27 @@ +{ + "dataset_id": "c2", + "model": "ctgan", + "run_id": "ctgan-c2-20260504_152304", + "public_gate_status": "pass", + "adapter_ready_status": "pass", + "train_status": "success", + "generate_status": "success", + "reason_code": null, + "reason_detail": null, + "artifacts": { + "synthetic_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/ctgan/ctgan-c2-20260504_152304/ctgan-c2-1382-20260504_152353.csv", + "model_path": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/ctgan/ctgan-c2-20260504_152304/models_50epochs/ctgan_50epochs.pt" + }, + "timings": { + "train": { + "started_at": "2026-05-04T15:23:04", + "ended_at": "2026-05-04T15:23:53", + "duration_sec": 49.624 + }, + "generate": { + "started_at": "2026-05-04T15:23:53", + "ended_at": "2026-05-04T15:23:59", + "duration_sec": 6.006 + } + } +} \ No newline at end of file diff --git a/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152304/staged/ctgan/adapter_report.json b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152304/staged/ctgan/adapter_report.json new file mode 100644 index 0000000000000000000000000000000000000000..7a10b79b3fd438b352d349856e6aaa5170be0296 --- /dev/null +++ b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152304/staged/ctgan/adapter_report.json @@ -0,0 +1,7 @@ +{ + "adapter_ready_status": "pass", + "adapter_fail_reason_code": null, + "adapter_fail_detail": null, + "adapter_transforms_applied": [], + "model_input_manifest": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/ctgan/ctgan-c2-20260504_152304/staged/ctgan/model_input_manifest.json" +} \ No newline at end of file diff --git a/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152304/staged/ctgan/adapter_transforms_applied.json b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152304/staged/ctgan/adapter_transforms_applied.json new file mode 100644 index 0000000000000000000000000000000000000000..0637a088a01e8ddab3bf3fa98dbe804cbde1a0dc --- /dev/null +++ b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152304/staged/ctgan/adapter_transforms_applied.json @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152304/staged/ctgan/model_input_manifest.json b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152304/staged/ctgan/model_input_manifest.json new file mode 100644 index 0000000000000000000000000000000000000000..73b58d2610a7c6335c463f5ded04d279904d13f3 --- /dev/null +++ b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152304/staged/ctgan/model_input_manifest.json @@ -0,0 +1,151 @@ +{ + "dataset_id": "c2", + "model": "ctgan", + "target_column": "class", + "task_type": "classification", + "column_schema": [ + { + "name": "buying", + "role": "feature", + "semantic_type": "categorical", + "nullable": false, + "missing_tokens": [], + "parse_format": null, + "impute_strategy": "mode", + "profile_stats": { + "missing_rate": 0.0, + "unique_count": 4, + "unique_ratio": 0.002894, + "example_values": [ + "vhigh", + "med", + "high", + "low" + ] + } + }, + { + "name": "maint", + "role": "feature", + "semantic_type": "categorical", + "nullable": false, + "missing_tokens": [], + "parse_format": null, + "impute_strategy": "mode", + "profile_stats": { + "missing_rate": 0.0, + "unique_count": 4, + "unique_ratio": 0.002894, + "example_values": [ + "vhigh", + "low", + "med", + "high" + ] + } + }, + { + "name": "doors", + "role": "feature", + "semantic_type": "categorical", + "nullable": false, + "missing_tokens": [], + "parse_format": null, + "impute_strategy": "mode", + "profile_stats": { + "missing_rate": 0.0, + "unique_count": 4, + "unique_ratio": 0.002894, + "example_values": [ + "2", + "5more", + "3", + "4" + ] + } + }, + { + "name": "persons", + "role": "feature", + "semantic_type": "categorical", + "nullable": false, + "missing_tokens": [], + "parse_format": null, + "impute_strategy": "mode", + "profile_stats": { + "missing_rate": 0.0, + "unique_count": 3, + "unique_ratio": 0.002171, + "example_values": [ + "2", + "4", + "more" + ] + } + }, + { + "name": "lug_boot", + "role": "feature", + "semantic_type": "categorical", + "nullable": false, + "missing_tokens": [], + "parse_format": null, + "impute_strategy": "mode", + "profile_stats": { + "missing_rate": 0.0, + "unique_count": 3, + "unique_ratio": 0.002171, + "example_values": [ + "small", + "big", + "med" + ] + } + }, + { + "name": "safety", + "role": "feature", + "semantic_type": "categorical", + "nullable": false, + "missing_tokens": [], + "parse_format": null, + "impute_strategy": "mode", + "profile_stats": { + "missing_rate": 0.0, + "unique_count": 3, + "unique_ratio": 0.002171, + "example_values": [ + "low", + "high", + "med" + ] + } + }, + { + "name": "class", + "role": "target", + "semantic_type": "categorical", + "nullable": false, + "missing_tokens": [], + "parse_format": null, + "impute_strategy": "mode", + "profile_stats": { + "missing_rate": 0.0, + "unique_count": 4, + "unique_ratio": 0.002894, + "example_values": [ + "unacc", + "good", + "acc", + "vgood" + ] + } + } + ], + "public_manifest": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/ctgan/ctgan-c2-20260504_152304/public_gate/staged_input_manifest.json", + "train_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/ctgan/ctgan-c2-20260504_152304/staged/public/train.csv", + "val_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/ctgan/ctgan-c2-20260504_152304/staged/public/val.csv", + "test_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/ctgan/ctgan-c2-20260504_152304/staged/public/test.csv", + "features_json": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/ctgan/ctgan-c2-20260504_152304/staged/public/staged_features.json", + "public_gate_report": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/ctgan/ctgan-c2-20260504_152304/public_gate/public_gate_report.json" +} \ No newline at end of file diff --git a/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152304/staged/public/staged_features.json b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152304/staged/public/staged_features.json new file mode 100644 index 0000000000000000000000000000000000000000..61783861dd5de501592f76acb0469cf3f3b2622a --- /dev/null +++ b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152304/staged/public/staged_features.json @@ -0,0 +1,37 @@ +[ + { + "feature_name": "buying", + "data_type": "categorical", + "is_target": false + }, + { + "feature_name": "maint", + "data_type": "categorical", + "is_target": false + }, + { + "feature_name": "doors", + "data_type": "categorical", + "is_target": false + }, + { + "feature_name": "persons", + "data_type": "categorical", + "is_target": false + }, + { + "feature_name": "lug_boot", + "data_type": "categorical", + "is_target": false + }, + { + "feature_name": "safety", + "data_type": "categorical", + "is_target": false + }, + { + "feature_name": "class", + "data_type": "categorical", + "is_target": true + } +] \ No newline at end of file diff --git a/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152304/staged/public/test.csv b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152304/staged/public/test.csv new file mode 100644 index 0000000000000000000000000000000000000000..392a0d7189a34d8f13ecf20a99d64b03230d517c --- /dev/null +++ b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152304/staged/public/test.csv @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b48114a7d0bc5bd9a07920f903c8d4aba8bf98bf2a66a050da03588b0245ca73 +size 5273 diff --git a/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152304/staged/public/train.csv b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152304/staged/public/train.csv new file mode 100644 index 0000000000000000000000000000000000000000..da4f4d55134eebc0e51157d0d467536371db1484 --- /dev/null +++ b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152304/staged/public/train.csv @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4aed00c2c2b3f88a55a7ebff31b2e1b5e0e32fb0a7267e0b9d2779cd23e434dd +size 41565 diff --git a/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152304/staged/public/val.csv b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152304/staged/public/val.csv new file mode 100644 index 0000000000000000000000000000000000000000..af8caf7ee42524188534a3daf32996dc491952d9 --- /dev/null +++ b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152304/staged/public/val.csv @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:26e90c1170a57a14c05832ac88027722b1f3848f9662c7c09ef7c93dcba4cc01 +size 5176 diff --git a/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152412/_ctgan_generate.py b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152412/_ctgan_generate.py new file mode 100644 index 0000000000000000000000000000000000000000..a6e2cc17bfbb8d558e91a73d47e786f6a6ea4a89 --- /dev/null +++ b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152412/_ctgan_generate.py @@ -0,0 +1,18 @@ +import sys +sys.path.insert(0, "/work") +from src.SpecificModels.ctgan_rdt_inverse_fix import apply_ctgan_inverse_fix +apply_ctgan_inverse_fix() +import pandas as pd +from ctgan.synthesizers.ctgan import CTGAN +model = CTGAN.load("/work/output-Benchmark-trainonly-v1/c2/ctgan/ctgan-c2-20260504_152412/models_100epochs/ctgan_100epochs.pt") +total = 1382 +chunk = min(50000, total) if total > 50000 else total +parts = [] +left = total +while left > 0: + take = min(chunk, left) + parts.append(model.sample(take)) + left -= take +sampled = pd.concat(parts, ignore_index=True) if len(parts) > 1 else parts[0] +sampled.to_csv("/work/output-Benchmark-trainonly-v1/c2/ctgan/ctgan-c2-20260504_152412/ctgan-c2-1382-20260504_152503.csv", index=False) +print("[CTGAN] Generated", total, "rows in", len(parts), "chunks ->", "/work/output-Benchmark-trainonly-v1/c2/ctgan/ctgan-c2-20260504_152412/ctgan-c2-1382-20260504_152503.csv") \ No newline at end of file diff --git a/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152412/_ctgan_train.py b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152412/_ctgan_train.py new file mode 100644 index 0000000000000000000000000000000000000000..eb7e6332e2a5f17ac5c5659de2b5fa14f3402fa6 --- /dev/null +++ b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152412/_ctgan_train.py @@ -0,0 +1,17 @@ +import pandas as pd +from ctgan.synthesizers.ctgan import CTGAN + +data = pd.read_csv("/work/output-Benchmark-trainonly-v1/c2/ctgan/ctgan-c2-20260504_152412/staged/public/train.csv") +discrete_columns = ['buying', 'maint', 'doors', 'persons', 'lug_boot', 'safety', 'class'] +model = CTGAN( + embedding_dim=16, + generator_dim=(32, 32), + discriminator_dim=(32, 32), + batch_size=64, + pac=1, + epochs=100, + verbose=True, +) +model.fit(data, discrete_columns) +model.save("/work/output-Benchmark-trainonly-v1/c2/ctgan/ctgan-c2-20260504_152412/models_100epochs/ctgan_100epochs.pt") +print("[CTGAN] Saved model ->", "/work/output-Benchmark-trainonly-v1/c2/ctgan/ctgan-c2-20260504_152412/models_100epochs/ctgan_100epochs.pt") \ No newline at end of file diff --git a/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152412/ctgan-c2-1382-20260504_152503.csv b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152412/ctgan-c2-1382-20260504_152503.csv new file mode 100644 index 0000000000000000000000000000000000000000..24115f3ea8ecea36e3add98d8105e4e8fb44f121 --- /dev/null +++ b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152412/ctgan-c2-1382-20260504_152503.csv @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1a3894c926a9de28a2c5d069c22c5841dba3d46059ebb36e4d9d6a34cf64b9d7 +size 41628 diff --git a/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152412/ctgan_metadata.json b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152412/ctgan_metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..183d627ebc98e89233655ec98c9dcbc528c4c328 --- /dev/null +++ b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152412/ctgan_metadata.json @@ -0,0 +1,32 @@ +{ + "columns": [ + { + "name": "buying", + "type": "categorical" + }, + { + "name": "maint", + "type": "categorical" + }, + { + "name": "doors", + "type": "categorical" + }, + { + "name": "persons", + "type": "categorical" + }, + { + "name": "lug_boot", + "type": "categorical" + }, + { + "name": "safety", + "type": "categorical" + }, + { + "name": "class", + "type": "categorical" + } + ] +} \ No newline at end of file diff --git a/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152412/gen_20260504_152503.log b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152412/gen_20260504_152503.log new file mode 100644 index 0000000000000000000000000000000000000000..8dc6481b689cc2843ea2cf84ad6d5317d8d6db8d --- /dev/null +++ b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152412/gen_20260504_152503.log @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4fdf3116f7dbf5aa10526c09e0aa425ff5d1d7b6d646d7493b1947d94e53cdc3 +size 297 diff --git a/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152412/input_snapshot.json b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152412/input_snapshot.json new file mode 100644 index 0000000000000000000000000000000000000000..e70c6b5c1d7c7363c5970bab5156163411d211e7 --- /dev/null +++ b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152412/input_snapshot.json @@ -0,0 +1,36 @@ +{ + "dataset_id": "c2", + "model": "ctgan", + "inputs": { + "train_csv": { + "path": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/c2/c2-train.csv", + "exists": true, + "size": 42948, + "sha256": "17bc560fa96bd00fb3b526e1e65bc91210b701d0d0a4e8bb9b4c5196cab56def" + }, + "val_csv": { + "path": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/c2/c2-val.csv", + "exists": true, + "size": 5349, + "sha256": "61e565eca62e65a7dccd9d51039a3170413379e10fc494e25870e7c4294863c9" + }, + "test_csv": { + "path": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/c2/c2-test.csv", + "exists": true, + "size": 5448, + "sha256": "cbcbb062a1faf5fa44b66c80532baa229e05b94fc42137269761e6c6d84af20a" + }, + "profile_json": { + "path": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/artifacts/data_core/tabular/c2/c2-dataset_profile.json", + "exists": true, + "size": 3240, + "sha256": "526b7163b2076c93c0bf4638438081ee8a6907065d5b608faa40d1a3dbc2a27b" + }, + "contract_json": { + "path": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/artifacts/data_core/tabular/c2/c2-dataset_contract_v1.json", + "exists": true, + "size": 3731, + "sha256": "fb595a876054c2ee9b4e10cfe83a5691588de1d25466cbb9d473c18ad3604009" + } + } +} \ No newline at end of file diff --git a/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152412/models_100epochs/ctgan_100epochs.pt b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152412/models_100epochs/ctgan_100epochs.pt new file mode 100644 index 0000000000000000000000000000000000000000..0e4044dc65ae5c3bd120e640c227865c3a03dc6f --- /dev/null +++ b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152412/models_100epochs/ctgan_100epochs.pt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:374f0a3ab118b4c358cfa846e538a91d1c0312a5d866fcadfd475f070e6873d8 +size 295011 diff --git a/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152412/models_100epochs/train_20260504_152412.log b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152412/models_100epochs/train_20260504_152412.log new file mode 100644 index 0000000000000000000000000000000000000000..016ed31b2b3da069ab0f57b0e1d8afed0aedb0de --- /dev/null +++ b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152412/models_100epochs/train_20260504_152412.log @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:13eea713840c309e407bb778338ff2e10f7e51ab12a6d203f926b413c280d5ad +size 20259 diff --git a/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152412/public_gate/normalized_schema_snapshot.json b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152412/public_gate/normalized_schema_snapshot.json new file mode 100644 index 0000000000000000000000000000000000000000..689b1d00d96508e44ba40e58dc4560e19afc2b3b --- /dev/null +++ b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152412/public_gate/normalized_schema_snapshot.json @@ -0,0 +1,144 @@ +{ + "dataset_id": "c2", + "target_column": "class", + "task_type": "classification", + "columns": [ + { + "name": "buying", + "role": "feature", + "semantic_type": "categorical", + "nullable": false, + "missing_tokens": [], + "parse_format": null, + "impute_strategy": "mode", + "profile_stats": { + "missing_rate": 0.0, + "unique_count": 4, + "unique_ratio": 0.002894, + "example_values": [ + "vhigh", + "med", + "high", + "low" + ] + } + }, + { + "name": "maint", + "role": "feature", + "semantic_type": "categorical", + "nullable": false, + "missing_tokens": [], + "parse_format": null, + "impute_strategy": "mode", + "profile_stats": { + "missing_rate": 0.0, + "unique_count": 4, + "unique_ratio": 0.002894, + "example_values": [ + "vhigh", + "low", + "med", + "high" + ] + } + }, + { + "name": "doors", + "role": "feature", + "semantic_type": "categorical", + "nullable": false, + "missing_tokens": [], + "parse_format": null, + "impute_strategy": "mode", + "profile_stats": { + "missing_rate": 0.0, + "unique_count": 4, + "unique_ratio": 0.002894, + "example_values": [ + "2", + "5more", + "3", + "4" + ] + } + }, + { + "name": "persons", + "role": "feature", + "semantic_type": "categorical", + "nullable": false, + "missing_tokens": [], + "parse_format": null, + "impute_strategy": "mode", + "profile_stats": { + "missing_rate": 0.0, + "unique_count": 3, + "unique_ratio": 0.002171, + "example_values": [ + "2", + "4", + "more" + ] + } + }, + { + "name": "lug_boot", + "role": "feature", + "semantic_type": "categorical", + "nullable": false, + "missing_tokens": [], + "parse_format": null, + "impute_strategy": "mode", + "profile_stats": { + "missing_rate": 0.0, + "unique_count": 3, + "unique_ratio": 0.002171, + "example_values": [ + "small", + "big", + "med" + ] + } + }, + { + "name": "safety", + "role": "feature", + "semantic_type": "categorical", + "nullable": false, + "missing_tokens": [], + "parse_format": null, + "impute_strategy": "mode", + "profile_stats": { + "missing_rate": 0.0, + "unique_count": 3, + "unique_ratio": 0.002171, + "example_values": [ + "low", + "high", + "med" + ] + } + }, + { + "name": "class", + "role": "target", + "semantic_type": "categorical", + "nullable": false, + "missing_tokens": [], + "parse_format": null, + "impute_strategy": "mode", + "profile_stats": { + "missing_rate": 0.0, + "unique_count": 4, + "unique_ratio": 0.002894, + "example_values": [ + "unacc", + "good", + "acc", + "vgood" + ] + } + } + ] +} \ No newline at end of file diff --git a/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152412/public_gate/public_gate_report.json b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152412/public_gate/public_gate_report.json new file mode 100644 index 0000000000000000000000000000000000000000..2e4cdcb2a4e28e40d59b17a83e773f622b7636a5 --- /dev/null +++ b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152412/public_gate/public_gate_report.json @@ -0,0 +1,37 @@ +{ + "dataset_id": "c2", + "status": "pass", + "checks": [ + { + "check_id": "PG001_csv_parse_ok", + "status": "pass" + }, + { + "check_id": "PG002_split_header_consistent", + "status": "pass" + }, + { + "check_id": "PG003_profile_header_match", + "status": "pass" + }, + { + "check_id": "PG004_missing_token_normalized", + "status": "pass" + }, + { + "check_id": "PG005_semantic_type_validated", + "status": "pass" + }, + { + "check_id": "PG006_target_defined_and_valid", + "status": "pass" + } + ], + "target_column": "class", + "task_type": "classification", + "input_splits": { + "train": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/c2/c2-train.csv", + "val": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/c2/c2-val.csv", + "test": "/data/jialinzhang/SynthesizePipeline-server/DatasetNew/c2/c2-test.csv" + } +} \ No newline at end of file diff --git a/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152412/public_gate/staged_input_manifest.json b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152412/public_gate/staged_input_manifest.json new file mode 100644 index 0000000000000000000000000000000000000000..80aeec1d38cb19d7ef9896f62f53b30f8a90381f --- /dev/null +++ b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152412/public_gate/staged_input_manifest.json @@ -0,0 +1,149 @@ +{ + "dataset_id": "c2", + "target_column": "class", + "task_type": "classification", + "train_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/ctgan/ctgan-c2-20260504_152412/staged/public/train.csv", + "val_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/ctgan/ctgan-c2-20260504_152412/staged/public/val.csv", + "test_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/ctgan/ctgan-c2-20260504_152412/staged/public/test.csv", + "features_json": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/ctgan/ctgan-c2-20260504_152412/staged/public/staged_features.json", + "public_gate_report": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/ctgan/ctgan-c2-20260504_152412/public_gate/public_gate_report.json", + "column_schema": [ + { + "name": "buying", + "role": "feature", + "semantic_type": "categorical", + "nullable": false, + "missing_tokens": [], + "parse_format": null, + "impute_strategy": "mode", + "profile_stats": { + "missing_rate": 0.0, + "unique_count": 4, + "unique_ratio": 0.002894, + "example_values": [ + "vhigh", + "med", + "high", + "low" + ] + } + }, + { + "name": "maint", + "role": "feature", + "semantic_type": "categorical", + "nullable": false, + "missing_tokens": [], + "parse_format": null, + "impute_strategy": "mode", + "profile_stats": { + "missing_rate": 0.0, + "unique_count": 4, + "unique_ratio": 0.002894, + "example_values": [ + "vhigh", + "low", + "med", + "high" + ] + } + }, + { + "name": "doors", + "role": "feature", + "semantic_type": "categorical", + "nullable": false, + "missing_tokens": [], + "parse_format": null, + "impute_strategy": "mode", + "profile_stats": { + "missing_rate": 0.0, + "unique_count": 4, + "unique_ratio": 0.002894, + "example_values": [ + "2", + "5more", + "3", + "4" + ] + } + }, + { + "name": "persons", + "role": "feature", + "semantic_type": "categorical", + "nullable": false, + "missing_tokens": [], + "parse_format": null, + "impute_strategy": "mode", + "profile_stats": { + "missing_rate": 0.0, + "unique_count": 3, + "unique_ratio": 0.002171, + "example_values": [ + "2", + "4", + "more" + ] + } + }, + { + "name": "lug_boot", + "role": "feature", + "semantic_type": "categorical", + "nullable": false, + "missing_tokens": [], + "parse_format": null, + "impute_strategy": "mode", + "profile_stats": { + "missing_rate": 0.0, + "unique_count": 3, + "unique_ratio": 0.002171, + "example_values": [ + "small", + "big", + "med" + ] + } + }, + { + "name": "safety", + "role": "feature", + "semantic_type": "categorical", + "nullable": false, + "missing_tokens": [], + "parse_format": null, + "impute_strategy": "mode", + "profile_stats": { + "missing_rate": 0.0, + "unique_count": 3, + "unique_ratio": 0.002171, + "example_values": [ + "low", + "high", + "med" + ] + } + }, + { + "name": "class", + "role": "target", + "semantic_type": "categorical", + "nullable": false, + "missing_tokens": [], + "parse_format": null, + "impute_strategy": "mode", + "profile_stats": { + "missing_rate": 0.0, + "unique_count": 4, + "unique_ratio": 0.002894, + "example_values": [ + "unacc", + "good", + "acc", + "vgood" + ] + } + } + ] +} \ No newline at end of file diff --git a/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152412/run_config.json b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152412/run_config.json new file mode 100644 index 0000000000000000000000000000000000000000..2cb71686f0f7799148a51aa35b2a4ee84aca72e3 --- /dev/null +++ b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152412/run_config.json @@ -0,0 +1,46 @@ +{ + "schema_version": 1, + "recorded_at": "2026-05-04T15:24:12", + "dataset_id": "c2", + "model": "ctgan", + "work_dir": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/ctgan/ctgan-c2-20260504_152412", + "dataset_source_requested": "new", + "dataset_source_resolved": "new", + "cli_args": { + "model": "ctgan", + "dataset": "c2", + "dataset_source": "new", + "train": true, + "generate": true, + "num_rows": 0, + "epochs": null, + "output_dir": null, + "model_dir": null, + "work_dir": null, + "resume": false, + "no_stats": false + }, + "resolved": { + "num_rows": 1382, + "model_path": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/ctgan/ctgan-c2-20260504_152412/models_100epochs/ctgan_100epochs.pt", + "output_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/ctgan/ctgan-c2-20260504_152412/ctgan-c2-1382-20260504_152503.csv" + }, + "input_artifacts": { + "public_gate_report": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/ctgan/ctgan-c2-20260504_152412/public_gate/public_gate_report.json", + "public_manifest": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/ctgan/ctgan-c2-20260504_152412/public_gate/staged_input_manifest.json", + "model_manifest": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/ctgan/ctgan-c2-20260504_152412/staged/ctgan/model_input_manifest.json", + "train_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/ctgan/ctgan-c2-20260504_152412/staged/public/train.csv", + "features_json": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/ctgan/ctgan-c2-20260504_152412/staged/public/staged_features.json", + "target_column": "class", + "task_type": "classification" + }, + "env_overrides": { + "BENCHMARK_CTGAN_GPUS": "device=3", + "CTGAN_BATCH_SIZE": "64", + "CTGAN_DEFAULT_EPOCHS": "100", + "CTGAN_DISCRIMINATOR_DIMS": "32,32", + "CTGAN_EMBEDDING_DIM": "16", + "CTGAN_GENERATOR_DIMS": "32,32", + "CTGAN_PAC": "1" + } +} \ No newline at end of file diff --git a/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152412/runtime_result.json b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152412/runtime_result.json new file mode 100644 index 0000000000000000000000000000000000000000..937e58e0473c6bbd8b3ee0e92fae0b15b8422aeb --- /dev/null +++ b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152412/runtime_result.json @@ -0,0 +1,27 @@ +{ + "dataset_id": "c2", + "model": "ctgan", + "run_id": "ctgan-c2-20260504_152412", + "public_gate_status": "pass", + "adapter_ready_status": "pass", + "train_status": "success", + "generate_status": "success", + "reason_code": null, + "reason_detail": null, + "artifacts": { + "synthetic_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/ctgan/ctgan-c2-20260504_152412/ctgan-c2-1382-20260504_152503.csv", + "model_path": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/ctgan/ctgan-c2-20260504_152412/models_100epochs/ctgan_100epochs.pt" + }, + "timings": { + "train": { + "started_at": "2026-05-04T15:24:12", + "ended_at": "2026-05-04T15:25:03", + "duration_sec": 50.201 + }, + "generate": { + "started_at": "2026-05-04T15:25:03", + "ended_at": "2026-05-04T15:25:08", + "duration_sec": 5.617 + } + } +} \ No newline at end of file diff --git a/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152412/staged/ctgan/adapter_report.json b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152412/staged/ctgan/adapter_report.json new file mode 100644 index 0000000000000000000000000000000000000000..f5f5ece257cc2be54a51b3dd7cb44e9814f81e60 --- /dev/null +++ b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152412/staged/ctgan/adapter_report.json @@ -0,0 +1,7 @@ +{ + "adapter_ready_status": "pass", + "adapter_fail_reason_code": null, + "adapter_fail_detail": null, + "adapter_transforms_applied": [], + "model_input_manifest": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/ctgan/ctgan-c2-20260504_152412/staged/ctgan/model_input_manifest.json" +} \ No newline at end of file diff --git a/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152412/staged/ctgan/adapter_transforms_applied.json b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152412/staged/ctgan/adapter_transforms_applied.json new file mode 100644 index 0000000000000000000000000000000000000000..0637a088a01e8ddab3bf3fa98dbe804cbde1a0dc --- /dev/null +++ b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152412/staged/ctgan/adapter_transforms_applied.json @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152412/staged/ctgan/model_input_manifest.json b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152412/staged/ctgan/model_input_manifest.json new file mode 100644 index 0000000000000000000000000000000000000000..4962ba89ebed95e0c2b0d4ca815088c5fa2c32b8 --- /dev/null +++ b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152412/staged/ctgan/model_input_manifest.json @@ -0,0 +1,151 @@ +{ + "dataset_id": "c2", + "model": "ctgan", + "target_column": "class", + "task_type": "classification", + "column_schema": [ + { + "name": "buying", + "role": "feature", + "semantic_type": "categorical", + "nullable": false, + "missing_tokens": [], + "parse_format": null, + "impute_strategy": "mode", + "profile_stats": { + "missing_rate": 0.0, + "unique_count": 4, + "unique_ratio": 0.002894, + "example_values": [ + "vhigh", + "med", + "high", + "low" + ] + } + }, + { + "name": "maint", + "role": "feature", + "semantic_type": "categorical", + "nullable": false, + "missing_tokens": [], + "parse_format": null, + "impute_strategy": "mode", + "profile_stats": { + "missing_rate": 0.0, + "unique_count": 4, + "unique_ratio": 0.002894, + "example_values": [ + "vhigh", + "low", + "med", + "high" + ] + } + }, + { + "name": "doors", + "role": "feature", + "semantic_type": "categorical", + "nullable": false, + "missing_tokens": [], + "parse_format": null, + "impute_strategy": "mode", + "profile_stats": { + "missing_rate": 0.0, + "unique_count": 4, + "unique_ratio": 0.002894, + "example_values": [ + "2", + "5more", + "3", + "4" + ] + } + }, + { + "name": "persons", + "role": "feature", + "semantic_type": "categorical", + "nullable": false, + "missing_tokens": [], + "parse_format": null, + "impute_strategy": "mode", + "profile_stats": { + "missing_rate": 0.0, + "unique_count": 3, + "unique_ratio": 0.002171, + "example_values": [ + "2", + "4", + "more" + ] + } + }, + { + "name": "lug_boot", + "role": "feature", + "semantic_type": "categorical", + "nullable": false, + "missing_tokens": [], + "parse_format": null, + "impute_strategy": "mode", + "profile_stats": { + "missing_rate": 0.0, + "unique_count": 3, + "unique_ratio": 0.002171, + "example_values": [ + "small", + "big", + "med" + ] + } + }, + { + "name": "safety", + "role": "feature", + "semantic_type": "categorical", + "nullable": false, + "missing_tokens": [], + "parse_format": null, + "impute_strategy": "mode", + "profile_stats": { + "missing_rate": 0.0, + "unique_count": 3, + "unique_ratio": 0.002171, + "example_values": [ + "low", + "high", + "med" + ] + } + }, + { + "name": "class", + "role": "target", + "semantic_type": "categorical", + "nullable": false, + "missing_tokens": [], + "parse_format": null, + "impute_strategy": "mode", + "profile_stats": { + "missing_rate": 0.0, + "unique_count": 4, + "unique_ratio": 0.002894, + "example_values": [ + "unacc", + "good", + "acc", + "vgood" + ] + } + } + ], + "public_manifest": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/ctgan/ctgan-c2-20260504_152412/public_gate/staged_input_manifest.json", + "train_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/ctgan/ctgan-c2-20260504_152412/staged/public/train.csv", + "val_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/ctgan/ctgan-c2-20260504_152412/staged/public/val.csv", + "test_csv": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/ctgan/ctgan-c2-20260504_152412/staged/public/test.csv", + "features_json": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/ctgan/ctgan-c2-20260504_152412/staged/public/staged_features.json", + "public_gate_report": "/data/jialinzhang/SynthesizePipeline-server/output-Benchmark-trainonly-v1/c2/ctgan/ctgan-c2-20260504_152412/public_gate/public_gate_report.json" +} \ No newline at end of file diff --git a/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152412/staged/public/staged_features.json b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152412/staged/public/staged_features.json new file mode 100644 index 0000000000000000000000000000000000000000..61783861dd5de501592f76acb0469cf3f3b2622a --- /dev/null +++ b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152412/staged/public/staged_features.json @@ -0,0 +1,37 @@ +[ + { + "feature_name": "buying", + "data_type": "categorical", + "is_target": false + }, + { + "feature_name": "maint", + "data_type": "categorical", + "is_target": false + }, + { + "feature_name": "doors", + "data_type": "categorical", + "is_target": false + }, + { + "feature_name": "persons", + "data_type": "categorical", + "is_target": false + }, + { + "feature_name": "lug_boot", + "data_type": "categorical", + "is_target": false + }, + { + "feature_name": "safety", + "data_type": "categorical", + "is_target": false + }, + { + "feature_name": "class", + "data_type": "categorical", + "is_target": true + } +] \ No newline at end of file diff --git a/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152412/staged/public/test.csv b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152412/staged/public/test.csv new file mode 100644 index 0000000000000000000000000000000000000000..392a0d7189a34d8f13ecf20a99d64b03230d517c --- /dev/null +++ b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152412/staged/public/test.csv @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b48114a7d0bc5bd9a07920f903c8d4aba8bf98bf2a66a050da03588b0245ca73 +size 5273 diff --git a/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152412/staged/public/train.csv b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152412/staged/public/train.csv new file mode 100644 index 0000000000000000000000000000000000000000..da4f4d55134eebc0e51157d0d467536371db1484 --- /dev/null +++ b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152412/staged/public/train.csv @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4aed00c2c2b3f88a55a7ebff31b2e1b5e0e32fb0a7267e0b9d2779cd23e434dd +size 41565 diff --git a/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152412/staged/public/val.csv b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152412/staged/public/val.csv new file mode 100644 index 0000000000000000000000000000000000000000..af8caf7ee42524188534a3daf32996dc491952d9 --- /dev/null +++ b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152412/staged/public/val.csv @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:26e90c1170a57a14c05832ac88027722b1f3848f9662c7c09ef7c93dcba4cc01 +size 5176 diff --git a/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152521/_ctgan_generate.py b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152521/_ctgan_generate.py new file mode 100644 index 0000000000000000000000000000000000000000..16e1cbf8bd422bec2ca1d496741eb412a6d3b10c --- /dev/null +++ b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152521/_ctgan_generate.py @@ -0,0 +1,18 @@ +import sys +sys.path.insert(0, "/work") +from src.SpecificModels.ctgan_rdt_inverse_fix import apply_ctgan_inverse_fix +apply_ctgan_inverse_fix() +import pandas as pd +from ctgan.synthesizers.ctgan import CTGAN +model = CTGAN.load("/work/output-Benchmark-trainonly-v1/c2/ctgan/ctgan-c2-20260504_152521/models_150epochs/ctgan_150epochs.pt") +total = 1382 +chunk = min(50000, total) if total > 50000 else total +parts = [] +left = total +while left > 0: + take = min(chunk, left) + parts.append(model.sample(take)) + left -= take +sampled = pd.concat(parts, ignore_index=True) if len(parts) > 1 else parts[0] +sampled.to_csv("/work/output-Benchmark-trainonly-v1/c2/ctgan/ctgan-c2-20260504_152521/ctgan-c2-1382-20260504_152602.csv", index=False) +print("[CTGAN] Generated", total, "rows in", len(parts), "chunks ->", "/work/output-Benchmark-trainonly-v1/c2/ctgan/ctgan-c2-20260504_152521/ctgan-c2-1382-20260504_152602.csv") \ No newline at end of file diff --git a/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152521/_ctgan_train.py b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152521/_ctgan_train.py new file mode 100644 index 0000000000000000000000000000000000000000..78628106b930abae414832204fa9175a7455533f --- /dev/null +++ b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152521/_ctgan_train.py @@ -0,0 +1,17 @@ +import pandas as pd +from ctgan.synthesizers.ctgan import CTGAN + +data = pd.read_csv("/work/output-Benchmark-trainonly-v1/c2/ctgan/ctgan-c2-20260504_152521/staged/public/train.csv") +discrete_columns = ['buying', 'maint', 'doors', 'persons', 'lug_boot', 'safety', 'class'] +model = CTGAN( + embedding_dim=32, + generator_dim=(64, 64), + discriminator_dim=(64, 64), + batch_size=128, + pac=1, + epochs=150, + verbose=True, +) +model.fit(data, discrete_columns) +model.save("/work/output-Benchmark-trainonly-v1/c2/ctgan/ctgan-c2-20260504_152521/models_150epochs/ctgan_150epochs.pt") +print("[CTGAN] Saved model ->", "/work/output-Benchmark-trainonly-v1/c2/ctgan/ctgan-c2-20260504_152521/models_150epochs/ctgan_150epochs.pt") \ No newline at end of file diff --git a/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152521/ctgan-c2-1382-20260504_152602.csv b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152521/ctgan-c2-1382-20260504_152602.csv new file mode 100644 index 0000000000000000000000000000000000000000..fb43b629026c53e55167fb66183df12a8ede4f6e --- /dev/null +++ b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152521/ctgan-c2-1382-20260504_152602.csv @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f9e5f49ea1929935b2cbff19d40b624b643fce1ce9b25dcd47f8a95b18c8e658 +size 41931 diff --git a/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152521/ctgan_metadata.json b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152521/ctgan_metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..183d627ebc98e89233655ec98c9dcbc528c4c328 --- /dev/null +++ b/SynthData0523/main/c2/ctgan/ctgan-c2-20260504_152521/ctgan_metadata.json @@ -0,0 +1,32 @@ +{ + "columns": [ + { + "name": "buying", + "type": "categorical" + }, + { + "name": "maint", + "type": "categorical" + }, + { + "name": "doors", + "type": "categorical" + }, + { + "name": "persons", + "type": "categorical" + }, + { + "name": "lug_boot", + "type": "categorical" + }, + { + "name": "safety", + "type": "categorical" + }, + { + "name": "class", + "type": "categorical" + } + ] +} \ No newline at end of file