title: Using complex-valued data in a RandomForestClassifier
body: <p>I have a dataset of frequency-domain values, so each element has a <code>"j"</code> at the end, like <code>"27.6695554346-5.51875942715j"</code>.
  this is a pic of some data in the matrix</p>
  
  <p><a href="https://i.stack.imgur.com/TRQdY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TRQdY.png" alt="enter image description here"></a></p>
  
  <p>When I try to use <code>RandomForestClassifier</code> with the following code:</p>
  
  <pre><code>cfr = RandomForestClassifier(n_estimators=10,n_jobs =5)
  cfr.fit(X1,y1)
  predictedY2=cfr.predict(X2)
  </code></pre>
  
  <p>I have this error:</p>
  
  <pre><code>ValueError: could not convert string to float: (27.6695554346-5.51875942715j)
  </code></pre>
  
  <p>Could you please explain what I have to do to in order to solve the problem?</p>