ruidan / IMN-E2E-ABSA

Code and dataset for ACL2019 ‘‘An Interactive Multi-Task Learning Network for End-to-End Aspect-Based Sentiment Analysis’’.
Apache License 2.0
99 stars 18 forks source link

return 0.01 * np.random.standard_normal(size=shape) File "mtrand.pyx", line 1545, in mtrand.RandomState.standard_normal File "mtrand.pyx", line 167, in mtrand.cont0_array TypeError: 'float' object cannot be interpreted as an integer #6

Open dongyang12138 opened 4 years ago

dongyang12138 commented 4 years ago

return 0.01 * np.random.standard_normal(size=shape) File "mtrand.pyx", line 1545, in mtrand.RandomState.standard_normal File "mtrand.pyx", line 167, in mtrand.cont0_array TypeError: 'float' object cannot be interpreted as an integer 请问怎么改正这个bug

wowowowhs commented 4 years ago

请问你的问题解决了吗?我也遇到了这个问题。

ruidan commented 4 years ago

请检查各种package的版本是否和readme一致

dongyang12138 commented 4 years ago

现在遇到了新问题,训练集loss=0 2020-07-31 17:36:33,927 INFO [Train] loss: 0.0000, [Sentiment] loss: 0.0000, [Domain] loss: 0.0000, [Sentiment] acc: 0.0000, [Domain] acc: 0.0000, 2020-07-31 17:38:20,377 INFO [Validation] loss: 0.5878, [Sentiment] loss: 0.5649, [Domain] loss: 0.0229, [Sentiment] acc: 0.7527, [Domain] acc: 0.9927,

在 2020-06-29 14:07:09,"wowowowhs" notifications@github.com 写道:

请问你的问题解决了吗?我也遇到了这个问题。

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.