这是indexloc提供的服务,不要输入任何密码
Skip to content

unexpected keyword argument 'task' #273

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

Merged
merged 1 commit into from
Jan 16, 2021
Merged

Conversation

StevenJokess
Copy link
Contributor


TypeError Traceback (most recent call last)
in ()
5 test_fn=lambda epoch, env_step: policy.set_eps(eps_test),
6 stop_fn=lambda mean_rewards: mean_rewards >= env.spec.reward_threshold,
----> 7 writer=writer, task=task)
8 print(f'Finished training! Use {result["duration"]}')

TypeError: offpolicy_trainer() got an unexpected keyword argument 'task'


https://github.com/StevenJokess/RL-Adventure/blob/master/test_dqn.ipynb

  • I have marked all applicable categories:
    • exception-raising fix
    • algorithm implementation fix
    • documentation modification
    • new feature
  • If applicable, I have mentioned the relevant/related issue(s)

Less important but also useful:

  • I have visited the source website
  • I have searched through the issue tracker for duplicates
  • I have mentioned version numbers, operating system and environment, where applicable:
    import tianshou, torch, sys
    print(tianshou.__version__, torch.__version__, sys.version, sys.platform)

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-7-77c1fbe7e903> in <module>()
      5     test_fn=lambda epoch, env_step: policy.set_eps(eps_test),
      6     stop_fn=lambda mean_rewards: mean_rewards >= env.spec.reward_threshold,
----> 7     writer=writer, task=task)
      8 print(f'Finished training! Use {result["duration"]}')

TypeError: offpolicy_trainer() got an unexpected keyword argument 'task'

---

https://github.com/StevenJokess/RL-Adventure/blob/master/test_dqn.ipynb
@codecov-io
Copy link

codecov-io commented Jan 16, 2021

Codecov Report

Merging #273 (5064f7b) into master (c6f2648) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #273   +/-   ##
=======================================
  Coverage   94.24%   94.24%           
=======================================
  Files          42       42           
  Lines        2763     2763           
=======================================
  Hits         2604     2604           
  Misses        159      159           
Flag Coverage Δ
unittests 94.24% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c6f2648...5064f7b. Read the comment docs.

@Trinkle23897 Trinkle23897 linked an issue Jan 16, 2021 that may be closed by this pull request
8 tasks
@Trinkle23897 Trinkle23897 merged commit 866e35d into thu-ml:master Jan 16, 2021
BFAnas pushed a commit to BFAnas/tianshou that referenced this pull request May 5, 2024
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

Successfully merging this pull request may close these issues.

TypeError: offpolicy_trainer() got an unexpected keyword argument 'task'
3 participants