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

Error in evaluation of a strategy #18

Open
Ai360n opened this issue Apr 14, 2023 · 6 comments
Open

Error in evaluation of a strategy #18

Ai360n opened this issue Apr 14, 2023 · 6 comments
Labels
bug Something isn't working

Comments

@Ai360n
Copy link

Ai360n commented Apr 14, 2023

Hello,

I am writing to inform you that unfortunately there is a problem when a scenario will be evaluated after training. In other words, when the below function will be called:

strategy.eval(scenario.test_stream)

This error will be shown:

AttributeError: 'RLScenario' object has no attribute 'test_stream'

Is there any update or solution for this issue?

Thanks in advance

avalanche-lib==0.3.1

@Ai360n Ai360n added the bug Something isn't working label Apr 14, 2023
@EliaPiccoli
Copy link
Collaborator

As you can see in the examples folder to make it work correctly you should write:

strategy.eval(scenario.eval_stream)

@AntonioCarta Should we stick with this name for the test/evaluation stream or should we change it?

@AntonioCarta
Copy link
Contributor

I think test_stream is a better default. Most benchmarks have a train/test split, not a train/eval split.

@Ai360n
Copy link
Author

Ai360n commented Apr 17, 2023

As you can see in the examples folder to make it work correctly you should write:

strategy.eval(scenario.eval_stream)

@AntonioCarta Should we stick with this name for the test/evaluation stream or should we change it?

Yes, thank you. Pardon me, now, as I save the checkpoints, I get this error during the evaluation when I use eval_stream:

RuntimeError: Checkpoint file checkpoints/99/checkpoint.pth already exists.

What is the problem? However, I save the checkpoint at end!

@AntonioCarta
Copy link
Contributor

We changed the checkpointing mechanism in the avalanche master because it had some issues. It is also untested with avalanche-RL still, so you may have to wait for the next avalanche release for a stable checkpointing system.

@Ai360n
Copy link
Author

Ai360n commented Apr 18, 2023

Thank you so much for your reply. Excuse me, when the next version of Avalanche will be release?

Thanks

@AntonioCarta
Copy link
Contributor

It's planned for the end of June. Avalanche-rl will support the new version soon after the release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants