TGAN
TGAN copied to clipboard
I have a problem when I try to use 'Random hyperparameter search'
<History of my work>
- I prepared a dataset and a JSON file. And I ran the code 'tgan experiments config.json results.json', but it didn't function. There was a massage 'SyntaxError: invalid syntax'
- So, I checked the API reference('https://sdv-dev.github.io/TGAN/api/tgan.research.experiments.html'). And I found the code 'tgan.research.experiments.run_experiments(config_path, output_path)'
- However, when I ran the code.... I have a error massage. It was 'AttributeError: module 'tgan.research' has no attribute 'experiments''.
- I found that I have to import experiments with the code 'from tgan.research import experiments'. And I ran the code 'tgan.research.experiments.run_experiments(config_path, output_path)'
- However, I met another error massage 'ValueError: Passing negative integer to header is invalid. For no header, use header=None instead'. (I have no negative integer in my data. Data composed of positive integers only.)
- Now, I am trying to modify the code of 'run_experiments' and 'run_experiment'. But still I can not resolve this header problem.
So, please let me know how I can resolve this header problem and use 'Random hyperparameter search'.
I'm facing a similar issue and I'm using a JSON like this:
{ "name": "tgan_randomSearch1", "num_random_search": 10, "train_csv": "./data/dataset_sample.csv", "continuous_cols": ['var1','var2','var3', 'var4', 'var5', 'var6', 'var7', 'var8', 'var9', 'var10', 'var11'], "epoch": 5, "steps_per_epoch": 5000, "sample_rows": 5000 }
when running tgan.research.experiments.run_experiments('./config.json', './results.json') I'm getting a JSONDecodeError: Expecting value: line 5 column 25 (char 159)