From bdeeb59f8f64a9c3a2e083f7e5c33a4c30a2c468 Mon Sep 17 00:00:00 2001 From: Gertjan van den Burg Date: Fri, 23 Feb 2018 17:10:16 +0000 Subject: Implement fitting and prediction --- R/print.gensvm.R | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) (limited to 'R/print.gensvm.R') diff --git a/R/print.gensvm.R b/R/print.gensvm.R index 8d17b0c..06a3649 100644 --- a/R/print.gensvm.R +++ b/R/print.gensvm.R @@ -26,9 +26,31 @@ print.gensvm <- function(object, ...) { cat("\nCall:\n") dput(object$call) + cat("\nData:\n") + cat("\tn.objects:", object$n.objects, "\n") + cat("\tn.features:", object$n.features, "\n") + cat("\tn.classes:", object$n.classes, "\n") + cat("\tclasses:", object$classes, "\n") + cat("Parameters:\n") + cat("\tp:", object$p, "\n") + cat("\tlambda:", object$lambda, "\n") + cat("\tkappa:", object$kappa, "\n") + cat("\tepsilon:", object$epsilon, "\n") + cat("\tweights:", object$weights, "\n") + cat("\tmax.iter:", object$max.iter, "\n") + cat("\trandom.seed:", object$random.seed, "\n") + cat("\tkernel:", object$kernel, "\n") + if (object$kernel %in% c("poly", "rbf", "sigmoid")) { + cat("\tkernel.eigen.cutoff:", object$kernel.eigen.cutoff, "\n") + cat("\tgamma:", object$gamma, "\n") + } + if (object$kernel %in% c("poly", "sigmoid")) + cat("\tcoef:", object$coef, "\n") + if (object$kernel == 'poly') + cat("\tdegree:", object$degree, "\n") + cat("Results:\n") + cat("\tn.iter:", object$n.iter, "\n") + cat("\tn.support:", object$n.support, "\n") - # TODO: fill this out - # - # invisible(object) } -- cgit v1.2.3