TabQueryBench commited on
Commit
4542bd6
·
verified ·
1 Parent(s): 3905fe5

Add files using upload-large-folder tool

Browse files
Files changed (21) hide show
  1. syntheticSuccess/c14/ctgan/ctgan-c14-20260505_172809/_ctgan_generate.py +18 -0
  2. syntheticSuccess/c14/ctgan/ctgan-c14-20260505_172809/_ctgan_train.py +17 -0
  3. syntheticSuccess/c14/ctgan/ctgan-c14-20260505_172809/ctgan-c14-64-20260505_173004.csv +3 -0
  4. syntheticSuccess/c14/ctgan/ctgan-c14-20260505_172809/ctgan_metadata.json +3 -0
  5. syntheticSuccess/c14/ctgan/ctgan-c14-20260505_172809/ctgan_train_prepared.csv +3 -0
  6. syntheticSuccess/c14/ctgan/ctgan-c14-20260505_172809/gen_20260505_173004.log +3 -0
  7. syntheticSuccess/c14/ctgan/ctgan-c14-20260505_172809/input_snapshot.json +3 -0
  8. syntheticSuccess/c14/ctgan/ctgan-c14-20260505_172809/models_5epochs/ctgan_5epochs.pt +3 -0
  9. syntheticSuccess/c14/ctgan/ctgan-c14-20260505_172809/models_5epochs/train_20260505_172813.log +3 -0
  10. syntheticSuccess/c14/ctgan/ctgan-c14-20260505_172809/public_gate/normalized_schema_snapshot.json +3 -0
  11. syntheticSuccess/c14/ctgan/ctgan-c14-20260505_172809/public_gate/public_gate_report.json +3 -0
  12. syntheticSuccess/c14/ctgan/ctgan-c14-20260505_172809/public_gate/staged_input_manifest.json +3 -0
  13. syntheticSuccess/c14/ctgan/ctgan-c14-20260505_172809/run_config.json +3 -0
  14. syntheticSuccess/c14/ctgan/ctgan-c14-20260505_172809/runtime_result.json +3 -0
  15. syntheticSuccess/c14/ctgan/ctgan-c14-20260505_172809/staged/ctgan/adapter_report.json +3 -0
  16. syntheticSuccess/c14/ctgan/ctgan-c14-20260505_172809/staged/ctgan/adapter_transforms_applied.json +3 -0
  17. syntheticSuccess/c14/ctgan/ctgan-c14-20260505_172809/staged/ctgan/model_input_manifest.json +3 -0
  18. syntheticSuccess/c14/ctgan/ctgan-c14-20260505_172809/staged/public/staged_features.json +3 -0
  19. syntheticSuccess/c14/ctgan/ctgan-c14-20260505_172809/staged/public/test.csv +3 -0
  20. syntheticSuccess/c14/ctgan/ctgan-c14-20260505_172809/staged/public/train.csv +3 -0
  21. syntheticSuccess/c14/ctgan/ctgan-c14-20260505_172809/staged/public/val.csv +3 -0
syntheticSuccess/c14/ctgan/ctgan-c14-20260505_172809/_ctgan_generate.py ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import sys
2
+ sys.path.insert(0, "/work")
3
+ from src.SpecificModels.ctgan_rdt_inverse_fix import apply_ctgan_inverse_fix
4
+ apply_ctgan_inverse_fix()
5
+ import pandas as pd
6
+ from ctgan.synthesizers.ctgan import CTGAN
7
+ model = CTGAN.load("/work/output-Benchmark-trainonly-v1/c14/ctgan/ctgan-c14-20260505_172809/models_5epochs/ctgan_5epochs.pt")
8
+ total = 64
9
+ chunk = min(50000, total) if total > 50000 else total
10
+ parts = []
11
+ left = total
12
+ while left > 0:
13
+ take = min(chunk, left)
14
+ parts.append(model.sample(take))
15
+ left -= take
16
+ sampled = pd.concat(parts, ignore_index=True) if len(parts) > 1 else parts[0]
17
+ sampled.to_csv("/work/output-Benchmark-trainonly-v1/c14/ctgan/ctgan-c14-20260505_172809/ctgan-c14-64-20260505_173004.csv", index=False)
18
+ print("[CTGAN] Generated", total, "rows in", len(parts), "chunks ->", "/work/output-Benchmark-trainonly-v1/c14/ctgan/ctgan-c14-20260505_172809/ctgan-c14-64-20260505_173004.csv")
syntheticSuccess/c14/ctgan/ctgan-c14-20260505_172809/_ctgan_train.py ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import pandas as pd
2
+ from ctgan.synthesizers.ctgan import CTGAN
3
+
4
+ data = pd.read_csv("/work/output-Benchmark-trainonly-v1/c14/ctgan/ctgan-c14-20260505_172809/ctgan_train_prepared.csv")
5
+ discrete_columns = ['bin_0', 'bin_1', 'bin_2', 'bin_3', 'bin_4', 'nom_0', 'nom_1', 'nom_2', 'nom_3', 'nom_4', 'nom_5', 'nom_6', 'nom_7', 'nom_8', 'nom_9', 'ord_1', 'ord_2', 'ord_3', 'ord_4', 'ord_5', 'target']
6
+ model = CTGAN(
7
+ embedding_dim=4,
8
+ generator_dim=(8, 8),
9
+ discriminator_dim=(8, 8),
10
+ batch_size=2,
11
+ pac=1,
12
+ epochs=5,
13
+ verbose=True,
14
+ )
15
+ model.fit(data, discrete_columns)
16
+ model.save("/work/output-Benchmark-trainonly-v1/c14/ctgan/ctgan-c14-20260505_172809/models_5epochs/ctgan_5epochs.pt")
17
+ print("[CTGAN] Saved model ->", "/work/output-Benchmark-trainonly-v1/c14/ctgan/ctgan-c14-20260505_172809/models_5epochs/ctgan_5epochs.pt")
syntheticSuccess/c14/ctgan/ctgan-c14-20260505_172809/ctgan-c14-64-20260505_173004.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f8bdb2dc41ab3f7680b42759d25ced87e4a75b2f5b0b0ad8c6895bad50e13079
3
+ size 8558
syntheticSuccess/c14/ctgan/ctgan-c14-20260505_172809/ctgan_metadata.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8983ce3621643ef7f234895e17cfd5fd71fc7ff9b4962965bab6ebd98d7e7c10
3
+ size 1613
syntheticSuccess/c14/ctgan/ctgan-c14-20260505_172809/ctgan_train_prepared.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f135a8a18cdb7d9127d7fa97595cc8eca1ab406b017b2557cf6a5d0c77a52db2
3
+ size 135612
syntheticSuccess/c14/ctgan/ctgan-c14-20260505_172809/gen_20260505_173004.log ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6fd3cee9fc04a9fbe2475c28c2b96a0d0284ef9f3693e00594a2e2e695e8b8fd
3
+ size 296
syntheticSuccess/c14/ctgan/ctgan-c14-20260505_172809/input_snapshot.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a41d0dd17154fdb2c3ad381061c54095c2cfd46644b1559b56a7bff86e2b6736
3
+ size 1362
syntheticSuccess/c14/ctgan/ctgan-c14-20260505_172809/models_5epochs/ctgan_5epochs.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:69a75fb8abd67fa39a237478d1661df3218556d0fb4daa58b699a292a948df19
3
+ size 43090359
syntheticSuccess/c14/ctgan/ctgan-c14-20260505_172809/models_5epochs/train_20260505_172813.log ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ac15b3e9aa2c81f56f586b1f7e19342f34630b76c5adb0b4fc593bfe1db312ef
3
+ size 5477
syntheticSuccess/c14/ctgan/ctgan-c14-20260505_172809/public_gate/normalized_schema_snapshot.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2e559ea7c300bee8dca838c3419b8517cfe17c153470e56a6f1c1fab72b7a10b
3
+ size 11306
syntheticSuccess/c14/ctgan/ctgan-c14-20260505_172809/public_gate/public_gate_report.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:465dc423a1ca46fea5f39f1b0c83b6cce2c16cdb3be3f582e8ce20fbce674981
3
+ size 920
syntheticSuccess/c14/ctgan/ctgan-c14-20260505_172809/public_gate/staged_input_manifest.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c9b17337eeb057d4a95ad0125f79602486699e14d63ed9864b705a62873bd511
3
+ size 12102
syntheticSuccess/c14/ctgan/ctgan-c14-20260505_172809/run_config.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:958a29e7d40bf45101d6e81a246ab147f46f747dbd6bc6921c1eb4f698242b60
3
+ size 2254
syntheticSuccess/c14/ctgan/ctgan-c14-20260505_172809/runtime_result.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9f7f2a324d063e6108a2982e9fab9a6b6f33ac043aae070a7acc524e89931943
3
+ size 902
syntheticSuccess/c14/ctgan/ctgan-c14-20260505_172809/staged/ctgan/adapter_report.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:355885a6df2400639278268479a2e37c074b6a137ec97ddc02b37bfb5d5a1325
3
+ size 317
syntheticSuccess/c14/ctgan/ctgan-c14-20260505_172809/staged/ctgan/adapter_transforms_applied.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945
3
+ size 2
syntheticSuccess/c14/ctgan/ctgan-c14-20260505_172809/staged/ctgan/model_input_manifest.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:41501496201fb220ff96631858ddd72e747c66975808407c2afdfbac661c10da
3
+ size 12295
syntheticSuccess/c14/ctgan/ctgan-c14-20260505_172809/staged/public/staged_features.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1c92cf6530ea76cef171daa9d723513c36aafe5dc5d8f5dfc27778090e2b0c03
3
+ size 2288
syntheticSuccess/c14/ctgan/ctgan-c14-20260505_172809/staged/public/test.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:617ecb620416375c67546e0fa5a8b9a3923d689bda904dc23824ea175d1f8597
3
+ size 3965839
syntheticSuccess/c14/ctgan/ctgan-c14-20260505_172809/staged/public/train.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:12398ccb68a2499b9c126f61b25f03c36a65f026d755e1d5ff5653e614676167
3
+ size 31717079
syntheticSuccess/c14/ctgan/ctgan-c14-20260505_172809/staged/public/val.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f40dbd7bbd9e2783c24d0d12ec35a85581835d45238774eb0676de44a734feda
3
+ size 3965919