Replace c14 ctgan with corrected 240000-row run
Browse files- syntheticSuccess/c14/ctgan/ctgan-c14-20260510_070847/_ctgan_generate.py +18 -0
- syntheticSuccess/c14/ctgan/ctgan-c14-20260510_070847/_ctgan_train.py +17 -0
- syntheticSuccess/c14/ctgan/ctgan-c14-20260510_070847/ctgan-c14-240000-20260510_140518.csv +3 -0
- syntheticSuccess/c14/ctgan/ctgan-c14-20260510_070847/ctgan_metadata.json +3 -0
- syntheticSuccess/c14/ctgan/ctgan-c14-20260510_070847/gen_20260510_140518.log +3 -0
- syntheticSuccess/c14/ctgan/ctgan-c14-20260510_070847/input_snapshot.json +3 -0
- syntheticSuccess/c14/ctgan/ctgan-c14-20260510_070847/models_100epochs/ctgan_100epochs.pt +3 -0
- syntheticSuccess/c14/ctgan/ctgan-c14-20260510_070847/run_config.json +3 -0
- syntheticSuccess/c14/ctgan/ctgan-c14-20260510_070847/runtime_result.json +3 -0
- syntheticSuccess/c14/ctgan/ctgan-c14-20260510_070847/staged/ctgan/adapter_report.json +3 -0
- syntheticSuccess/c14/ctgan/ctgan-c14-20260510_070847/staged/ctgan/adapter_transforms_applied.json +3 -0
- syntheticSuccess/c14/ctgan/ctgan-c14-20260510_070847/staged/ctgan/model_input_manifest.json +3 -0
- syntheticSuccess/c14/ctgan/ctgan-c14-20260510_070847/staged/public/staged_features.json +3 -0
- syntheticSuccess/c14/ctgan/ctgan-c14-20260510_070847/staged/public/test.csv +3 -0
- syntheticSuccess/c14/ctgan/ctgan-c14-20260510_070847/staged/public/train.csv +3 -0
- syntheticSuccess/c14/ctgan/ctgan-c14-20260510_070847/staged/public/val.csv +3 -0
syntheticSuccess/c14/ctgan/ctgan-c14-20260510_070847/_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-20260510_070847/models_100epochs/ctgan_100epochs.pt")
|
| 8 |
+
total = 240000
|
| 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-20260510_070847/ctgan-c14-240000-20260510_140518.csv", index=False)
|
| 18 |
+
print("[CTGAN] Generated", total, "rows in", len(parts), "chunks ->", "/work/output-Benchmark-trainonly-v1/c14/ctgan/ctgan-c14-20260510_070847/ctgan-c14-240000-20260510_140518.csv")
|
syntheticSuccess/c14/ctgan/ctgan-c14-20260510_070847/_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-20260510_070847/staged/public/train.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=16,
|
| 8 |
+
generator_dim=(32, 32),
|
| 9 |
+
discriminator_dim=(32, 32),
|
| 10 |
+
batch_size=64,
|
| 11 |
+
pac=1,
|
| 12 |
+
epochs=100,
|
| 13 |
+
verbose=True,
|
| 14 |
+
)
|
| 15 |
+
model.fit(data, discrete_columns)
|
| 16 |
+
model.save("/work/output-Benchmark-trainonly-v1/c14/ctgan/ctgan-c14-20260510_070847/models_100epochs/ctgan_100epochs.pt")
|
| 17 |
+
print("[CTGAN] Saved model ->", "/work/output-Benchmark-trainonly-v1/c14/ctgan/ctgan-c14-20260510_070847/models_100epochs/ctgan_100epochs.pt")
|
syntheticSuccess/c14/ctgan/ctgan-c14-20260510_070847/ctgan-c14-240000-20260510_140518.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:968755f884ea32af55b9a583c625e352cc68c872b37b15f205305a2e1408aa08
|
| 3 |
+
size 31579942
|
syntheticSuccess/c14/ctgan/ctgan-c14-20260510_070847/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-20260510_070847/gen_20260510_140518.log
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f0b64467c1e890e56013cf1273e74ce834ce3c2b60d374b8173929e44dccadee
|
| 3 |
+
size 304
|
syntheticSuccess/c14/ctgan/ctgan-c14-20260510_070847/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-20260510_070847/models_100epochs/ctgan_100epochs.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:299d4627fbb6b3649f884775041ef3478849011d3c3e97e4096de4212dd3afdf
|
| 3 |
+
size 304204800
|
syntheticSuccess/c14/ctgan/ctgan-c14-20260510_070847/run_config.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d6f0c1a5aa077adc6871cd1bc382e1ec9e6dd2b0cdfaaea37ac79c7657dc32d1
|
| 3 |
+
size 2209
|
syntheticSuccess/c14/ctgan/ctgan-c14-20260510_070847/runtime_result.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:acd2157a55e9dad427b8a27e133791cc31f00ff2f4475cd4a3f36a2f376f3ec2
|
| 3 |
+
size 915
|
syntheticSuccess/c14/ctgan/ctgan-c14-20260510_070847/staged/ctgan/adapter_report.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:46ab4c85b8bfa8875835db424dc53e1b86ec9cbca658c73ae0f2d9522a793700
|
| 3 |
+
size 317
|
syntheticSuccess/c14/ctgan/ctgan-c14-20260510_070847/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-20260510_070847/staged/ctgan/model_input_manifest.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d58f1e498619b5e85c4cddcaa0f350c99936243f0d0a12dc1ae5cbbcf7607415
|
| 3 |
+
size 12295
|
syntheticSuccess/c14/ctgan/ctgan-c14-20260510_070847/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-20260510_070847/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-20260510_070847/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-20260510_070847/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
|