[Rd] delete.response() incorrectly handles terms-objects (PR#1327)
david.meyer@ci.tuwien.ac.at
david.meyer@ci.tuwien.ac.at
Mon, 25 Feb 2002 16:44:55 +0100 (MET)
Prof Brian D Ripley wrote:
>
> Thanks, fixed now.
>
> Why were you calling delete.response on an object with no response, BTW?
I used it in predict.svm(), and the terms-object contained in the svm
model just happens to have no response for the ``one-class
classification'' if svm was called e.g. by:
m <- svm(~a+b).
Because of the second line in delete.response()
if (length(f) == 3)
f[[2]] <- NULL
handling the no-response case, I believed I was allowed to use
delete.response() without checking for this.
> I wonder whether delete.response should not be a no-op in that case (it is
> in S), if there is any reason to handle it at all.
So people will have to check for it before using delete.response() -
this is probably more secure indeed.
-d
>
--
Mag. David Meyer Wiedner Hauptstrasse 8-10
Vienna University of Technology A-1040 Vienna/AUSTRIA
Department for Tel.: (+431) 58801/10772
Statistics and Probability Theory mail: david.meyer@ci.tuwien.ac.at
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._