Very new in ML...
Actual problem is more complex, but I'll give it shorter.
Train data is a collection of samples, describing features of some items. There are many samples for each item. So ML model is implied to predict a few target variables, but one time for each item:
[![enter image description here][1]][1] [1]: https://i.sstatic.net/P1fWT.png
It appears, that I can't find in sklearn or a similar kit a way to fit model with this type of train-input/train-output. Is there any way to do this without hand-implementing whole pipeline?
I've considered this answer: How to predict based on multiple samples?
But I'm not sure it's applicable, since there are many-many samples for each item