Closed samkeene closed 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);
Updated in newest repo with a nicer error
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);