Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
glucotrend opened this issue Jun 16, 2020 · 1 comment
Open

Comments

@glucotrend
Copy link

glucotrend commented Jun 16, 2020

  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 glucotrend changed the title I have a problem when I try to use 'Random hyperparameter search' I have a problem when I try to use 'Random hyperparameter search' Jun 16, 2020
@tanmaysgs
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants