Re: [Scikit-learn-general] train_test_split return values

2014-09-18 Thread Joel Nothman
A copy On 19 September 2014 06:32, Pagliari, Roberto wrote: > When using train_test_split, is the output a reference to the input data, > or a deep copy? > > > -- > Slashdot TV. Video for Nerds. Stuff that Matters. > >

[Scikit-learn-general] train_test_split return values

2014-09-18 Thread Pagliari, Roberto
When using train_test_split, is the output a reference to the input data, or a deep copy? -- Slashdot TV. Video for Nerds. Stuff that Matters. http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk_

Re: [Scikit-learn-general] k-nearest neighbors for complex data

2014-09-18 Thread Alexandre Gramfort
hi Neal, you should concat the imaginery and real parts of the features. X = np.c_[X.real, X.imag] if you use the euclidian distance it should do the join. Alex On Wed, Sep 17, 2014 at 8:05 PM, Mohamed-Rafik Bouguelia wrote: > Hi, > You cannot use complex numbers, they should be real number