Using sklearn with complex values
It depends on what those imaginary numbers represent to you.
If you want to cluster them in a certain sense you have to define a metric.
You can choose to perform a clustering based on theyr real and imaginary coordinates or you can use the absolute value as value for the clustering. Otherwise you can convert the imaginary representation in the polar form and so cluster them based on the modulus and angular argument.
I am trying to perform a kmeans in Python using scikit-learn. The thing is my data are complex values and Python doesn't like it.
Is there any mean to use sklearn with complex values ?