one_hot is deprecated