avalanche-rl icon indicating copy to clipboard operation
avalanche-rl copied to clipboard

Error in evaluation of a strategy

Open Ai360n opened this issue 2 years ago • 6 comments

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 avatar Apr 14 '23 19:04 Ai360n

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?

EliaPiccoli avatar Apr 17 '23 08:04 EliaPiccoli

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

AntonioCarta avatar Apr 17 '23 09:04 AntonioCarta

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!

Ai360n avatar Apr 17 '23 19:04 Ai360n

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.

AntonioCarta avatar Apr 18 '23 13:04 AntonioCarta

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

Thanks

Ai360n avatar Apr 18 '23 13:04 Ai360n

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

AntonioCarta avatar Apr 18 '23 13:04 AntonioCarta