I ran into the a similar shape error with ml5 version 0.12.2. Turns out my labels were integers. When I changed them to string it worked again.