On Thu, Jan 19, 2012 at 9:57 AM, Manish Katyal <[email protected]> wrote: > Just getting started with scikits and was running into a problem: > > My large dataset is in SVMLight format. I load it like (X_train, y_train = > load_svmlight_file(f)) > When I try using the SVM > Classifier: svm.SVC(gamma=0.001).fit(X_train,y_train), I get the following
Since your data is sparse, you need to use svm.sparse.SVC, not svm.SVC. Mathieu ------------------------------------------------------------------------------ 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
