I am trying to run the following Collab file : https://colab.research.google.com/github/jeffheaton/t81_558_deep_learning/blob/master/t81_558_class_07_5_tabular_synthetic.ipynb . It generates fake data but does not work!
All the previous cells in this notebook seem to work fine but when reach the following code cell, I receive an error:
from tabgan.sampler import GANGenerator
import pandas as pd
import numpy as np
from sklearn.model_selection import train_test_split
gen_x, gen_y = GANGenerator(gen_x_times=1.1, cat_cols=None,
bot_filter_quantile=0.001, top_filter_quantile=0.999, \
is_post_process=True,
adversarial_model_params={
"metrics": "rmse", "max_depth": 2, "max_bin": 100,
"learning_rate": 0.02, "random_state": \
42, "n_estimators": 500,
}, pregeneration_frac=2, only_generated_data=False,\
gan_params = {"batch_size": 500, "patience": 25, \
"epochs" : 500,}).generate_data_pipe(df_x_train, df_y_train,\
df_x_test, deep_copy=True, only_adversarial=False, \
use_adversarial=True)
It gives me the error : " LGBMClassifier.fit() got an unexpected keyword argument 'early_stopping_rounds' " I do not know how is is fixed!.
Note: you need to install tabgan via pip install tabgan
I need to get "gen_x" (This is my aim)
Try new version of library, with fixed error
pip install tabgan==1.3.3