[R] setting weights for such a two-class problem in nnet and svm

From: Baoqiang Cao <caobg_at_email.uc.edu>
Date: Sat 23 Jul 2005 - 02:18:02 EST

Dear All,

I have such a two-class problem, one class is very large(~98% of total), and the other is just 2%. According to manual of nnet, I need setup "weights", so I intend to set 1 for class one, 49 for class 2. How do I do that? Just weights=49? Meanwhile I'd like to try svm(e1071), again, how do I setup "class.weights"? Thanks.

BTW: Many thanks to Jake and Uwe for their answers about using "save" to store trained networks!

Best regards,
 Baoqiang Cao

R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sat Jul 23 02:23:35 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:33:57 EST