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

Missing 1 required positional argument: 'log_dir' #3

Open
tombax7 opened this issue Jan 9, 2020 · 3 comments
Open

Missing 1 required positional argument: 'log_dir' #3

tombax7 opened this issue Jan 9, 2020 · 3 comments

Comments

@tombax7
Copy link

tombax7 commented Jan 9, 2020

Hello, I am trying to run the tcn.py example and I am facing some difficulties.
with
--add_config [...]/config/tcn.yaml --observer file

It returns

  File "[...]\dts\examples\tcn.py", line 184, in <module>
    observer_type=args.observer)

TypeError: run_single_experiment() missing 1 required positional argument: 'log_dir'

Can you please provide some fruitful input?

@Codelab-X
Copy link

have u finish this question?wondering how do u fix it?

@ZHY109
Copy link

ZHY109 commented Nov 24, 2022 via email

@tiagoyukio12
Copy link

I was able to run the example:

python dts/examples/ffnn.py --add_config 'config/ffnn.yaml' --observer file

By replacing the end of the dts/dts/examples/ffnn.py file from:

run_single_experiment(
            experimentclass=DTSExperiment,
            db_name=config['db'],
            ex_name='ffnn',
            f_main=main,
            f_config=args.add_config,
            f_metrics=log_metrics,
            observer_type=args.observer)

To:

run_single_experiment(
            experimentclass=DTSExperiment,
            db_name=config['db'],
            ex_name='ffnn',
            f_main=main,
            f_config=args.add_config,
            f_metrics=log_metrics,
            logs_dir='./logs',
            observer_type=args.observer)

If you want to test this fix, I've made a Google Colab where I'm trying to replicate the results from the paper and it didn't return the error: https://colab.research.google.com/drive/15c_Qmk7k3CobI-cdY92NWdU8u3hVjFY5?usp=sharing

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

4 participants