TabQueryBench commited on
Commit
fe21aa7
·
verified ·
1 Parent(s): 91c9461

Add files using upload-large-folder tool

Browse files
Files changed (21) hide show
  1. syntheticSuccess/c18/ctgan/ctgan-c18-20260511_052106/_ctgan_generate.py +18 -0
  2. syntheticSuccess/c18/ctgan/ctgan-c18-20260511_052106/_ctgan_train.py +17 -0
  3. syntheticSuccess/c18/ctgan/ctgan-c18-20260511_052106/ctgan-c18-103976-20260512_083614.csv +3 -0
  4. syntheticSuccess/c18/ctgan/ctgan-c18-20260511_052106/ctgan_metadata.json +3 -0
  5. syntheticSuccess/c18/ctgan/ctgan-c18-20260511_052106/ctgan_train_prepared.csv +3 -0
  6. syntheticSuccess/c18/ctgan/ctgan-c18-20260511_052106/gen_20260512_083614.log +3 -0
  7. syntheticSuccess/c18/ctgan/ctgan-c18-20260511_052106/input_snapshot.json +3 -0
  8. syntheticSuccess/c18/ctgan/ctgan-c18-20260511_052106/models_50epochs/ctgan_50epochs.pt +3 -0
  9. syntheticSuccess/c18/ctgan/ctgan-c18-20260511_052106/models_50epochs/train_20260511_052110.log +3 -0
  10. syntheticSuccess/c18/ctgan/ctgan-c18-20260511_052106/public_gate/normalized_schema_snapshot.json +3 -0
  11. syntheticSuccess/c18/ctgan/ctgan-c18-20260511_052106/public_gate/public_gate_report.json +3 -0
  12. syntheticSuccess/c18/ctgan/ctgan-c18-20260511_052106/public_gate/staged_input_manifest.json +3 -0
  13. syntheticSuccess/c18/ctgan/ctgan-c18-20260511_052106/run_config.json +3 -0
  14. syntheticSuccess/c18/ctgan/ctgan-c18-20260511_052106/runtime_result.json +3 -0
  15. syntheticSuccess/c18/ctgan/ctgan-c18-20260511_052106/staged/ctgan/adapter_report.json +3 -0
  16. syntheticSuccess/c18/ctgan/ctgan-c18-20260511_052106/staged/ctgan/adapter_transforms_applied.json +3 -0
  17. syntheticSuccess/c18/ctgan/ctgan-c18-20260511_052106/staged/ctgan/model_input_manifest.json +3 -0
  18. syntheticSuccess/c18/ctgan/ctgan-c18-20260511_052106/staged/public/staged_features.json +3 -0
  19. syntheticSuccess/c18/ctgan/ctgan-c18-20260511_052106/staged/public/test.csv +3 -0
  20. syntheticSuccess/c18/ctgan/ctgan-c18-20260511_052106/staged/public/train.csv +3 -0
  21. syntheticSuccess/c18/ctgan/ctgan-c18-20260511_052106/staged/public/val.csv +3 -0
syntheticSuccess/c18/ctgan/ctgan-c18-20260511_052106/_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/c18/ctgan/ctgan-c18-20260511_052106/models_50epochs/ctgan_50epochs.pt")
8
+ total = 103976
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/c18/ctgan/ctgan-c18-20260511_052106/ctgan-c18-103976-20260512_083614.csv", index=False)
18
+ print("[CTGAN] Generated", total, "rows in", len(parts), "chunks ->", "/work/output-Benchmark-trainonly-v1/c18/ctgan/ctgan-c18-20260511_052106/ctgan-c18-103976-20260512_083614.csv")
syntheticSuccess/c18/ctgan/ctgan-c18-20260511_052106/_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/c18/ctgan/ctgan-c18-20260511_052106/ctgan_train_prepared.csv")
5
+ discrete_columns = ['country', 'description', 'designation', 'province', 'region_1', 'region_2', 'taster_name', 'taster_twitter_handle', 'title', 'variety', 'winery']
6
+ model = CTGAN(
7
+ embedding_dim=4,
8
+ generator_dim=(8, 8),
9
+ discriminator_dim=(8, 8),
10
+ batch_size=4,
11
+ pac=1,
12
+ epochs=50,
13
+ verbose=True,
14
+ )
15
+ model.fit(data, discrete_columns)
16
+ model.save("/work/output-Benchmark-trainonly-v1/c18/ctgan/ctgan-c18-20260511_052106/models_50epochs/ctgan_50epochs.pt")
17
+ print("[CTGAN] Saved model ->", "/work/output-Benchmark-trainonly-v1/c18/ctgan/ctgan-c18-20260511_052106/models_50epochs/ctgan_50epochs.pt")
syntheticSuccess/c18/ctgan/ctgan-c18-20260511_052106/ctgan-c18-103976-20260512_083614.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cc1c72fe2070c3164862dd55b9b9157ad1d4df098c49848dfebdb16b40ae31f7
3
+ size 44702713
syntheticSuccess/c18/ctgan/ctgan-c18-20260511_052106/ctgan_metadata.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0ce70ca4107634e7429768841842833a760655af3d4d43b787f735a8b3e2907a
3
+ size 964
syntheticSuccess/c18/ctgan/ctgan-c18-20260511_052106/ctgan_train_prepared.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f9d0f4861cd488757e8489f63c9ecdbece64a3397ecfa3dcd59ed2cbb3807fdc
3
+ size 8152223
syntheticSuccess/c18/ctgan/ctgan-c18-20260511_052106/gen_20260512_083614.log ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:38cecd657e8654d180231e2267d55086b037a6767567cbfe288e298b4e26dab6
3
+ size 304
syntheticSuccess/c18/ctgan/ctgan-c18-20260511_052106/input_snapshot.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:32f3ce9b045a2f4c804a26c2dda5da0e9c450c6e463eb17d1a4e7155067f46a1
3
+ size 1361
syntheticSuccess/c18/ctgan/ctgan-c18-20260511_052106/models_50epochs/ctgan_50epochs.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0d55145e0cb30decd982604c86fbc73307b27c52f2498a6e68841791e9464f5c
3
+ size 13987531981
syntheticSuccess/c18/ctgan/ctgan-c18-20260511_052106/models_50epochs/train_20260511_052110.log ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7c2cc2dbf940c39b9a6d160d59d134aadc48b63aea91fc92a5c6c1eee9ed56a7
3
+ size 12705
syntheticSuccess/c18/ctgan/ctgan-c18-20260511_052106/public_gate/normalized_schema_snapshot.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ca33a02c28873c5ec5fec52da747d206cd9e461100244e401a7a2e5ef3cba096
3
+ size 8391
syntheticSuccess/c18/ctgan/ctgan-c18-20260511_052106/public_gate/public_gate_report.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:27f1ca3c2a10e936a41ba26048d2f0bc62addbfac55033a559ba761621c8ed22
3
+ size 921
syntheticSuccess/c18/ctgan/ctgan-c18-20260511_052106/public_gate/staged_input_manifest.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6e9173a59d0e5b7e5df2f88faff642b3fe22d3f0b3ed8ab20dabde2303d8c993
3
+ size 9187
syntheticSuccess/c18/ctgan/ctgan-c18-20260511_052106/run_config.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6c91a225ae0dfd9b7d34116bbe705c448e06e6adbcac5cc401990791cd3ec2f6
3
+ size 2205
syntheticSuccess/c18/ctgan/ctgan-c18-20260511_052106/runtime_result.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:488c548c133a521b3705de92bfdf87ad5a9e62006787335593acbae8c6a654f5
3
+ size 914
syntheticSuccess/c18/ctgan/ctgan-c18-20260511_052106/staged/ctgan/adapter_report.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c8e7222271cf7adbe8c240395142d306f1afa6ece2c643946cff0744b22ff1fd
3
+ size 317
syntheticSuccess/c18/ctgan/ctgan-c18-20260511_052106/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/c18/ctgan/ctgan-c18-20260511_052106/staged/ctgan/model_input_manifest.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5f6ad2d306bd3688f3b297dfa542c05510d503bdce1886ca59ea6de9988e9eb5
3
+ size 9380
syntheticSuccess/c18/ctgan/ctgan-c18-20260511_052106/staged/public/staged_features.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:632cd1c583d7dfd3107947bb9a317b8bb4bc567040e03ec88232c59e6f87a161
3
+ size 1350
syntheticSuccess/c18/ctgan/ctgan-c18-20260511_052106/staged/public/test.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f9b247fe90d1b3de687afbee0871f768b5b9b41d8974110c1a1a4be0a1581258
3
+ size 5283050
syntheticSuccess/c18/ctgan/ctgan-c18-20260511_052106/staged/public/train.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d36ba8fd95415355fed46a70cd71921339f0b4b8f05320279bef35443ce4cc16
3
+ size 42317177
syntheticSuccess/c18/ctgan/ctgan-c18-20260511_052106/staged/public/val.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6368d0c3f97d7449830710d697fc67e7fb71fa7038bc480892279eb41c153f0b
3
+ size 5289617