2012/3/13 Robert Layton <[email protected]>: > Lars, you are right, it should have metric='precomputed' in it. > However by passing the distance matrix without a metric, the features become > "distance to point i", which act as sort of meta-features anyway, allowing > training to happen. This means that it works with a distance matrix as > input, even though that is probably not what you wanted. I believe that some > classifiers use this concept, although it has escaped me which ones.
But then still the demo is odd, because it is passing a similarity matrix, not distances: D = distance.squareform(distance.pdist(X)) S = 1 - (D / np.max(D)) -- Lars Buitinck Scientific programmer, ILPS University of Amsterdam ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ Scikit-learn-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
