Issue with onehot encoding

the culprit is RandomSplitter. If i just remove it, then it works with export.

The code is at here: