covartech / PRT

Pattern Recognition Toolbox for MATLAB
http://covartech.github.io/
MIT License
145 stars 70 forks source link

RVM should check that input data set is binary #1

Closed samkeene closed 12 years ago

samkeene commented 12 years ago

Unary data set gives weirdass error

ds = prtDataSetClass; ds = ds.setX(1); ds = ds.setY(1); cl = prtClassRvm; cl.train(ds)

??? Attempted to access yMat(:,2); index out of bounds because numel(yMat)=1.

Error in ==> prtClassRvm>prtClassRvm.getMinusOneOneTargets at 325 y(yMat(:,2) == 1) = 1;

Error in ==> prtClassRvm>prtClassRvm.trainAction at 201 y = Obj.getMinusOneOneTargets(DataSet);

Error in ==> prtAction>prtAction.train at 220 Obj = trainAction(Obj, DataSet);

peterTorrione commented 12 years ago

Updated in newest repo with a nicer error