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

some problem about running main.py #4

Open
zenghaogithub opened this issue Jul 14, 2020 · 8 comments
Open

some problem about running main.py #4

zenghaogithub opened this issue Jul 14, 2020 · 8 comments

Comments

@zenghaogithub
Copy link

Your code is very helpful to me !
When I run the main.py, I met an error line 351 , it display as follow:
Total_parameters: 22015
penalty_m = np.vstack(penalty_m)
File "E:\Program Files (x86)\anaconda3\envs\gym\lib\site-packages\numpy\core\shape_base.py", line 234, in vstack
return _nx.concatenate([atleast_2d(_m) for _m in tup], 0)
ValueError: need at least one array to concatenate.
I guess at the first epoch, the variable 'penalty_m' is an empty list,it cannot be used 'np.vstack',can you tell me how to solve the problem? Thank you

@zenghaogithub
Copy link
Author

hoping that i can get your reply

@liyu0007
Copy link

hoping that i can get your reply,thanks!!

@liyu0007
Copy link

hoping that i can get your reply

你找到问题所在了吗??

@018429
Copy link

018429 commented Mar 3, 2022

Your code is very helpful to me ! When I run the main.py, I met an error line 351 , it display as follow: Total_parameters: 22015 penalty_m = np.vstack(penalty_m) File "E:\Program Files (x86)\anaconda3\envs\gym\lib\site-packages\numpy\core\shape_base.py", line 234, in vstack return _nx.concatenate([atleast_2d(_m) for _m in tup], 0) ValueError: need at least one array to concatenate. I guess at the first epoch, the variable 'penalty_m' is an empty list,it cannot be used 'np.vstack',can you tell me how to solve the problem? Thank you

I suppose It's because the m is set to zero,so we get the problem, we need add model_1,model_2 etcl before,but I don't know how to add a modle_1 too

@ltclzw
Copy link

ltclzw commented Jun 22, 2022

这个代码你成功运行了嘛

@liyu0007
Copy link

liyu0007 commented Jun 22, 2022 via email

@17719108990
Copy link

请问这个问题有运行成功的吗?

@17719108990
Copy link

你的代码对我非常有帮助!当我运行 main.py 时,我遇到了错误行 351,它显示如下:Total_parameters:22015 penalty_m = np.vstack(penalty_m) 文件 “E:\Program Files (x86)\anaconda3\envs\gym\lib\site-packages\numpy\core\shape_base.py”,第 234 行,在 vstack 中返回 _nx.concatenate([atleast_2d(_m) for _m in tup],0) ValueError:至少需要一个数组来连接。我想在第一个纪元,变量“penalty_m”是一个空列表,它不能使用“np.vstack”,你能告诉我如何解决这个问题吗?谢谢

Your code is very helpful to me ! When I run the main.py, I met an error line 351 , it display as follow: Total_parameters: 22015 penalty_m = np.vstack(penalty_m) File "E:\Program Files (x86)\anaconda3\envs\gym\lib\site-packages\numpy\core\shape_base.py", line 234, in vstack return _nx.concatenate([atleast_2d(_m) for _m in tup], 0) ValueError: need at least one array to concatenate. I guess at the first epoch, the variable 'penalty_m' is an empty list,it cannot be used 'np.vstack',can you tell me how to solve the problem? Thank you

Hello, did you solve this problem?

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

5 participants