AI4Finance-Foundation / AI4Finance-Foundation/ElegantRL

Suggestion: AgentXXX.py if_act_target if_cri_target

Ouverte
#142 2 commentaires 0 réactions 1 personne assignée Réclamée par @zhumingpassional Voir sur GitHub
bug Suggestion
Langage dominant
Python
Étoiles
4.4k
Forks
978
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

There are bug in `if_act_target` and `if_cri_target` in `AgentBase.py`

`class AgentXXX.__init__()` should set `args.if_cri_target = getattr(self, "if_cri_target", True)` (or False) in default.

Takes AgentDQN as an example, the following code should be changed.

https://github.com/AI4Finance-Foundation/ElegantRL/blob/3ded1cef5d9c9100422935141b07d3ec5301db4b/elegantrl/agents/AgentDQN.py#L21-L26

Change to fhe following code (as `ElegantRL HelloWorld` version do):
https://github.com/AI4Finance-Foundation/ElegantRL/blob/3ded1cef5d9c9100422935141b07d3ec5301db4b/elegantrl_helloworld/agent.py#L62-L69

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.