R/print.summary.spFSR.R

Defines functions print.summary.spFSR

print.summary.spFSR <- function(x, ...){

  cat( '\nSummary of SPSA for feature selection')
  cat( '\nTarget variable:', x$target )
  cat( '\nNumber of features: ', x$nfeatures, '\n')
  cat( '\nWrapper: ', x$name )
  cat( '\nTotal number of iterations: ', x$niters)
  cat( '\nBest Features \n')
  print( x$importance )
  cat('\nBest Iteration Results\n')
  cat( paste('  Iteration Number: ', x$best.iter), '\n')
  cat( paste('  Measure value: ', format(x$best.value), ...) , '\n')
  cat( paste('  Measure standard deviation: ', format(x$best.std), ...), '\n')
}

Try the spFSR package in your browser

Any scripts or data that you put into this service are public.

spFSR documentation built on March 31, 2023, 9:05 p.m.