Skip to content

Commit 4885446

Browse files
committed
feat: remove unecessary files and update logic
1 parent 251facc commit 4885446

57 files changed

Lines changed: 199 additions & 6292 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

examples/regular/models/creditcard_ctgan.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
CTGAN architecture example file
2+
ctgan architecture example file
33
"""
44
import pandas as pd
55
from sklearn import cluster
@@ -35,7 +35,7 @@
3535
fraud_w_classes['Class'] = labels
3636

3737
#----------------------------
38-
# CTGAN Training
38+
# ctgan Training
3939
#----------------------------
4040

4141
batch_size = 500
@@ -53,10 +53,10 @@
5353
# Create a bining
5454
fraud_w_classes['Amount'] = pd.cut(fraud_w_classes['Amount'], 5).cat.codes
5555

56-
# Init the CTGAN
56+
# Init the ctgan
5757
synth = RegularSynthesizer(modelname='ctgan', model_parameters=ctgan_args)
5858

59-
#Training the CTGAN
59+
#Training the ctgan
6060
synth.fit(data=fraud_w_classes, train_arguments=train_args, num_cols=num_cols, cat_cols=cat_cols)
6161

6262
# Saving the synthesizer

requirements.txt

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1 @@
1-
requests>=2.28, <2.31
2-
pandas<3
3-
numpy<2
4-
scikit-learn<2
5-
matplotlib<4
6-
tensorflow==2.15.*
7-
tensorflow-probability[tf]
8-
easydict==1.10
9-
pmlb==1.0.*
10-
tqdm<5.0
11-
typeguard==4.2.*
12-
pytest==7.4.*
1+
ydata-sdk

src/ydata_synthetic/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
#from .version import __version__
1+
"""Main module of ydata-synthetic.
2+
3+
.. include:: ../../README.md
4+
"""

src/ydata_synthetic/evaluation/__init__.py

Whitespace-only changes.

src/ydata_synthetic/postprocessing/regular/inverse_preprocesser.py

Lines changed: 0 additions & 45 deletions
This file was deleted.

src/ydata_synthetic/preprocessing/__init__.py

Lines changed: 0 additions & 7 deletions
This file was deleted.

src/ydata_synthetic/preprocessing/base_processor.py

Lines changed: 0 additions & 127 deletions
This file was deleted.

src/ydata_synthetic/preprocessing/regular/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)