Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: 3d hyperplane
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Ramya Mohan

Posts: 1
Registered: 4/10/13
3d hyperplane
Posted: Apr 10, 2013 9:01 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

THE BELOW PROGRAM IS TO CLASSIFY THE CANCER AND NONCANCER DATAUSING SVM & I USES 2 FEATURES ONLY & DISPLAY THE PLOT. HOW CAN I DISPLAY THE RESULT FOR 3-D. PLS HELP ME.
clc;clf;clear all;close all;
i=24;
j=25;
data=xlsread('DATACANCER.XLSX');
load clasy
data = [data(:,i), data(:,j)];
groups = ismember(species,'B');
[train, test] = crossvalind('holdOut',groups);
cp = classperf(groups);
svmStruct = svmtrain(data(train,:),groups(train),'showplot','true','METHOD','SMO');
classes = svmclassify(svmStruct,data(test,:),'showplot','true');
classperf(cp,classes,test);
Accuracy=cp.CorrectRate*100;
disp(Accuracy);
cp



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.