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

V1 predict result nan error #144

Open
bonwoo-koo9 opened this issue Aug 7, 2022 · 0 comments
Open

V1 predict result nan error #144

bonwoo-koo9 opened this issue Aug 7, 2022 · 0 comments

Comments

@bonwoo-koo9
Copy link

bonwoo-koo9 commented Aug 7, 2022

안녕하세요, 강화학습 모듈을 기초부터 이해하기 위해 직접 v1부터 파헤치고 있는 중인데요, 아래와 같이 모델을 돌렸을경우에 update까진 문제 없이 출력이 되는데 마지막 predict의 결과가 모든 날짜에 대해 action과 confidence가 0과 nan 가 출력되는데 어떻게 수정해야 predict 값을 확인할 수 있을까요?

python main.py --mode train --ver v1 --name 000020 --stock_code 000020 --rl_method dqn --net lstm --start_date 20150101 --end_date 20151231
python main.py --mode test --ver v1 --name 000020 --stock_code 000020 --rl_method dqn --net lstm --start_date 20160101 --end_date 20161231
python main.py --mode update --ver v1 --name 000020 --stock_code 000020 --rl_method a2c --net lstm --start_date 20160101 --end_date 20161231
python main.py --mode predict --ver v1 --name 000020 --stock_code 000020 --rl_method dqn --net lstm --start_date 20160101 --end_date 20161231

결과:
[('20160108', 0, nan), ('20160111', 0, nan), ('20160112', 0, nan), ('20160113', 0, nan), ('20160114', 0, nan), ('20160115', 0, nan), ('20160118', 0, nan), ('20160119', 0, nan),
('20160120', 0, nan), ('20160121', 0, nan), ('20160122', 0, nan), ('20160125', 0, nan), ('20160126', 0, nan), ('20160127', 0, nan), ('20160128', 0, nan), ('20160129', 0, nan), (
'20160201', 0, nan), ('20160202', 0, nan), ('20160203', 0, nan), ('20160204', 0, nan), ('20160205', 0, nan), ('20160211', 0, nan), ('20160212', 0, nan), ('20160215', 0, nan), ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant