templateBasedClassification: Use an expected function shape to classify new instances

Description Usage Arguments Value Author(s) Examples

View source: R/templateBasedClassification.R

Description

Applies a function to a matrix representation of a sentence to get an eigensentence map.

Usage

1
2
templateBasedClassification(exemplarmat, labels, newmat, method = "corr",
  mask = NA, eigsents = NA, sparval = c(-0.2, -0.9))

Arguments

exemplarmat

each row is an example of a specific class - no specific ordering assumed

labels

labels for each row of the exemplar

newmat

newmatrix instances to classify

method

one of a selection of options to drive the classification

Value

class label is output

Author(s)

Avants BB

Examples

1
2
3
4
  mat<-replicate(100, rnorm(21)) 
  labels<-rep(c(1:3),7)
  newmat<-replicate(100, rnorm(21))[1:2,]
  myclass<-templateBasedClassification( mat, labels, newmat, method="corr" )

stnava/RKRNS documentation built on Aug. 26, 2017, 9:55 a.m.