predict.ptmKnn: Function predict.ptmKnn extends generic function predict for...

Description Usage Arguments Value Examples

Description

Function predict.ptmKnn extends generic function predict for Naive Bayes bernoulli model

Usage

1
2
## S3 method for class 'ptmKnn'
predict(model, data)

Arguments

model

list should contain $vectors $fact, $k, $metric

data

data.frame contains values of our testing set (identical structure that was use in training set for building model)

Value

result vector where for each sample from data set assigned category is returned

Examples

1
predict(model, data)

vovkaOst/TextClassifier documentation built on May 3, 2019, 6:41 p.m.