If you are trying to predict color, which can be red, blue or green, ordinal encoding is red = 0, blue = 1, green =2. A dependent variable that has just two possible values is usually encoded using ...