ElegantRL icon indicating copy to clipboard operation
ElegantRL copied to clipboard

where is train_and_evaluate function?

Open wanghia opened this issue 1 year ago • 5 comments

i can not find this function

wanghia avatar Dec 12 '23 08:12 wanghia

too

QimingRen1 avatar Feb 22 '24 08:02 QimingRen1

Hi, where did you see train_and_evaluate function mentioned? I think it refers to train_agent() in run.py in elegantrl and Helloworld. The training process involves training and evaluating.

stellawang196 avatar Jun 01 '24 01:06 stellawang196

Hi, where did you see train_and_evaluate function mentioned? I think it refers to train_agent() in run.py in elegantrl and Helloworld. The training process involves training and evaluating.

It's mentioned in a couple of files in folder examples, e.g. examples/demo_DDPG_H.py, examples/demo_Isaac_Gym.py, examples/demo_PPO_H.py.

HiFei8816 avatar Aug 04 '24 19:08 HiFei8816

i can not find this function

Did you fix the problem? I'm facing the same problem.

HiFei8816 avatar Aug 04 '24 19:08 HiFei8816

@wanghia @QimingRen1

See this pull request 2 years ago. https://github.com/AI4Finance-Foundation/ElegantRL/pull/239#issuecomment-1340286821 It seems that train_and_evaluate has been renamed to train_agent. Change the code to from elegantrl.train.run import train_agent works in my case.

@stellawang196 Maybe you can modify the import code in some files, since train_and_evaluate doesn't work any more.

HiFei8816 avatar Aug 04 '24 21:08 HiFei8816