I have a circular data (color component Hue of HSL) and I need to use it as predictor in one of the machine learning algorithms. How can I convert it to the regular continuous variable?
In order to clarify the problem, suppose we have an object in red. The predictor hue, for instance, takes its value in two separated range [0, 60] and [300, 359]. Most of the machine learning algorithms find the mean (average) of the predictors. Therefore, the mean will lie into the range [150, 210] which refer to the cyan color! That happens because hue is circular data..
Any help would be appreciated!