I have a data frame in which one of my columns is the target value and there are lots of ordinal categories in columns of data frame.
I want to encode these ordinal categories in columns with this method which is proposed here
I didn't understand what I should do. Should I find the probability of each category in each column and substitute the amount of probability with the string of each category?