TGAN icon indicating copy to clipboard operation
TGAN copied to clipboard

I have a problem when I try to use 'Random hyperparameter search'

Open glucotrend opened this issue 5 years ago • 1 comments

<History of my work>

  1. 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'
  2. 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)'
  3. However, when I ran the code.... I have a error massage. It was 'AttributeError: module 'tgan.research' has no attribute 'experiments''.
  4. 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)'
  5. 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.)
  6. 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'.

glucotrend avatar Jun 16 '20 16:06 glucotrend

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)

tanmaysgs avatar Jun 18 '20 06:06 tanmaysgs