AI4Finance-Foundation / AI4Finance-Foundation/FinRL

assert hasattr(self.agent, 'init') AssertionError (elegantrl-0.3.3 )

Open
#719 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Jupyter Notebook
Stars
16.3k
Forks
3.5k
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
Run into an assertionError in `Elegantrl-0.3.3-py3.9.egg`-->`config.py`
assert hasattr(self.agent, 'init')
AssertionError

**Error message**
```
File "/home/FinRL/FinRL-Library/finrl/agents/elegantrl/models.py", line 87, in train_model
train_and_evaluate(model)
File "/home/FinRL/FinRL-Library/venv/lib/python3.9/site-packages/elegantrl-0.3.3-py3.9.egg/elegantrl/train/run.py", line 15, in train_and_evaluate
args.init_before_training() # necessary!
File "/home/FinRL/FinRL-Library/venv/lib/python3.9/site-packages/elegantrl-0.3.3-py3.9.egg/elegantrl/train/config.py", line 191, in init_before_training
assert hasattr(self.agent, 'init')
AssertionError
```
I suppose this due to update in elegantrl-0.3.3.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.