Skip to content

Commit

Permalink
fix: imports
Browse files Browse the repository at this point in the history
  • Loading branch information
fabclmnt committed Oct 14, 2020
1 parent eb2c1fb commit 7787def
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/ydata_synthetic/synthesizers/regular/cgan/model.py
Expand Up @@ -2,6 +2,8 @@
from os import path
import numpy as np

from ydata_synthetic.synthesizers import gan

import tensorflow as tf
from tensorflow.keras.layers import Input, Dense, Dropout, Flatten, Embedding, multiply
from tensorflow.keras import Model
Expand All @@ -10,9 +12,9 @@

class CGAN():

def __init__(self, gan_args):
def __init__(self, model_parameters):
[self.batch_size, lr, self.noise_dim,
self.data_dim, num_classes, self.classes, layers_dim] = gan_args
self.data_dim, num_classes, self.classes, layers_dim] = model_parameters

self.generator = Generator(self.batch_size, num_classes). \
build_model(input_shape=(self.noise_dim,), dim=layers_dim, data_dim=self.data_dim)
Expand Down
Expand Up @@ -2,7 +2,7 @@
from os import path
import numpy as np

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

import tensorflow as tf
from tensorflow.keras.layers import Input, Dense, Dropout
Expand Down
2 changes: 1 addition & 1 deletion src/ydata_synthetic/synthesizers/regular/wgan/model.py
Expand Up @@ -2,7 +2,7 @@
from os import path
import numpy as np

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

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

0 comments on commit 7787def

Please sign in to comment.