Win a copy of Zero to AI - A non-technical, hype-free guide to prospering in the AI era this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

Plotting ROC Curve for 3 Classes

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Output :  ValueError: y should be a 1d array, got an array of shape (329, 3) instead.
Traceback:  svm_tuned.fit(X_train_mm, y_train)

Question:
I want to plot ROC_Curve of my svm model, my data has 1,2,3 classes i binarized them using label binarizer but still getting this error the traceback error is at "y_score". My request to those who wanna clear my doubt or solution please dont send me the code of iris data i can look it up on sklearn website just give me explanation or write your code as a solution to this problem. I am really thankful to those who will answer. Sorry if i make any mistake in posting questions i am new to stackoverflow and new to python & machine learning. Thank you
 
He's dead Jim. Grab his tricorder. I'll get his wallet and this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic