# Value Error in DQN algorithm with custom environment

**URL:** <https://discuss.ai.google.dev/t/value-error-in-dqn-algorithm-with-custom-environment/27301>\
**Category:** General Discussion\
**Tags:** reinforcement-learni\
**Created:** [April 18, 2023, 10:50am UTC](https://discuss.ai.google.dev/t/value-error-in-dqn-algorithm-with-custom-environment/27301 "2023-04-18T10:50:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![someoneelse](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/someoneelse/32/12374_2.png) [@someoneelse](https://discuss.ai.google.dev/u/someoneelse)\
**Post date:** [April 18, 2023, 10:50am UTC](https://discuss.ai.google.dev/t/value-error-in-dqn-algorithm-with-custom-environment/27301/1 "2023-04-18T10:50:59Z")

</div>

Here i am trying to create a custom environment and trying to find the lowest and highest point on chart and and find the most accurate parameters for database.  
select parameters → create database in base of parameters → check the profitability of database so like how accurate are these parameters and repeat until it finds the most accurate but i am getting this error: **ValueError: Error when checking input: expected input\_9 to have 2 dimensions, but got array with shape (1, 1, 2)**  
i cannot find the source of this error.  
this code is a first draft so i cannot go forward to make it better cause of this error.  
[https://github.com/2endplayer/public.git](https://github.com/2endplayer/public.git)
