We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2ced54 commit a4c4d5bCopy full SHA for a4c4d5b
tests/integration/test_ctgan.py
@@ -184,3 +184,14 @@ def test_wrong_sampling_conditions():
184
185
with pytest.raises(ValueError):
186
ctgan.sample(1, 'discrete', "d")
187
+
188
189
+def test_ctgan_data_transformer_params():
190
+ data = pd.DataFrame({
191
+ 'continuous': np.random.random(1000)
192
+ })
193
194
+ ctgan = CTGANSynthesizer(epochs=1)
195
+ ctgan.fit(data, [], data_transformer_params={'max_gm_samples': 100})
196
197
+ assert ctgan._transformer._max_gm_samples == 100
0 commit comments