Skip to content

Commit

Permalink
Merge pull request #6 from ydataai/feat/package
Browse files Browse the repository at this point in the history
feat: Package
  • Loading branch information
fabclmnt committed Oct 14, 2020
2 parents 1648865 + 78b650e commit ee122f3
Show file tree
Hide file tree
Showing 17 changed files with 46 additions and 18 deletions.
1 change: 0 additions & 1 deletion examples/cgan_example.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from models import CGAN
from preprocessing.credit_fraud import *

from sklearn import cluster

Expand Down
9 changes: 0 additions & 9 deletions models/__init__.py

This file was deleted.

7 changes: 3 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
pandas==1.0.3
numpy==1.17.4
scikit-learn==0.22.2
matplotlib
easydict

tensorflow==2.1.0
matplotlib==3.3.2
tensorflow==2.1.0
easydict
31 changes: 31 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
from setuptools import setup, find_namespace_packages
import os
from pathlib import Path

here = Path(__file__).parent.resolve()

requirements = (here / "requirements.txt").read_text(encoding="utf8")
long_description = (here / 'README.md').read_text(encoding='utf-8')

VERSION = os.getenv('VERSION')

setup(name='ydata-synthetic',
version=VERSION,
description='Synthetic data generation methods with different synthetization methods.',
author='YData',
author_email='community@ydata.ai',
classifiers=[
'Programming Language :: Python :: 3 :: Only',
'Topic :: Software Development :: Artificial Intelligence :: Python Modules :: ',
'Operating System :: POSIX :: Linux',
'Operating System :: MacOS',
'Operating System :: Microsoft :: Windows',
],
keywords='data science ydata',
url='https://github.com/ydataai/ydata-synthetic',
python_requires=">=3.6",
packages=find_namespace_packages('src'),
package_dir={'':'src'},
include_package_data=True,
install_requires=requirements,
options={"bdist_wheel": {"universal": True}})
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
9 changes: 9 additions & 0 deletions src/ydata_synthetic/synthesizers/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from src.ydata_synthetic.synthesizers.regular.cgan.model import CGAN
from src.ydata_synthetic.synthesizers.regular.wgan.model import WGAN
from src.ydata_synthetic.synthesizers.regular.vanillagan.model import VanilllaGAN

__all__ = [
"VanilllaGAN",
"CGAN",
"WGAN"
]
File renamed without changes.
File renamed without changes.
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def build_model(self, input_shape, dim):

if __name__ == '__main__':
import pandas as pd
from preprocessing.credit_fraud import transformations
from src.ydata_synthetic.preprocessing import transformations
import sklearn.cluster as cluster

data = pd.read_csv('/home/fabiana/PycharmProjects/YData/gan-playground/examples/data/creditcard.csv')
Expand Down
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from os import path
import numpy as np

from models import gan
from src.ydata_synthetic.synthesizers import gan

import tensorflow as tf
from tensorflow.keras.layers import Input, Dense, Dropout
Expand Down
Empty file.
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import os
from os import path
import numpy as np
from functools import partial

from models import gan
from src.ydata_synthetic.synthesizers import gan

import tensorflow as tf
from tensorflow.keras.layers import Input, Dense, Dropout
Expand Down

0 comments on commit ee122f3

Please sign in to comment.