How can I initial an ActiveLearner with 3-D shape data? #72
Comments
You get the error during the initialization? From the error details, it seems like you have the error after you first try to call |
Sorry for the confusion. Actually, I keep the consistency in my code. Both the shapes are (1000, 75, 17). I have edited the description of my first comment. |
Thanks for the clarification! Which Keras version you are running? (You can find this by for example modAL supports arbitrary dimensions, so it is either a bug or an issue with your Keras version. |
The versions I'm using are: According to the traceback, I checked the source code of
|
Sorry for the late answer, I was extremely busy. I was checking out an earlier version of Keras which didn't contain this restriction, so I would suggest the most recent one where these changes are not introduced. It seems to me that However, this is a quite old version, so it might not be best to use this. What I would recommend in that case is the following. First, you should try to reproduce this issue without using modAL to make sure it is an issue with Keras. If you can confirm this, the next step should be to open an issue in the Keras repository detailing the problem. |
Here I am trying to do the Named-Entity Recognition task, so the shape of y_initial is (1000, 75, 17),
where 1000 is the number of sentences, 75 is the number of words in one sentence, and 17 is the number of tags for a word. Then I get such an error:
The text was updated successfully, but these errors were encountered: