Just look at first one.
The second option seems to work OK, it doesn't complain about having the same input with different outputs for the training set. But what about the first option?
I thought this might work, but there is something wrong with the syntax. Help?
Yes, it works, thanks. And sorry that I hadn't posted the working solution, which either Giulio or someone else alerted me to.