What is the difference between `asarray` and `asanyarray`? The documentation for `asanyarray` says: Convert the input to an ndarray, but pass ndarray subclasses through. The documentation for `asarray` says: Convert the input to an array.
What I don't get is why `asanyarray` won't convert a `matrix`? On 21 October 2011 12:49, Lars Buitinck <[email protected]> wrote: > > 2011/10/21 Fabian Pedregosa <[email protected]>: > > +1 for accepting anything that quacks like a duck, it should be up to > > the user to decide which data structure to use. > > I'm also pro-converting; that makes 6 against 3. I've put up pull > request at https://github.com/scikit-learn/scikit-learn/pull/410. > > -- > Lars Buitinck > Scientific programmer, ILPS > University of Amsterdam > > ------------------------------------------------------------------------------ > The demand for IT networking professionals continues to grow, and the > demand for specialized networking skills is growing even more rapidly. > Take a complimentary Learning@Cisco Self-Assessment and learn > about Cisco certifications, training, and career opportunities. > http://p.sf.net/sfu/cisco-dev2dev > _______________________________________________ > Scikit-learn-general mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/scikit-learn-general -- He is no fool who gives what he cannot keep to gain what he cannot lose. - Jim Elliot. ------------------------------------------------------------------------------ The demand for IT networking professionals continues to grow, and the demand for specialized networking skills is growing even more rapidly. Take a complimentary Learning@Cisco Self-Assessment and learn about Cisco certifications, training, and career opportunities. http://p.sf.net/sfu/cisco-dev2dev _______________________________________________ Scikit-learn-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
