ipfEstimate {ipft} | R Documentation |
Estimates the location of the test observations
Description
Estimates the location of the test observations
Usage
ipfEstimate(ipfmodel, test_fgp, test_pos = NULL)
Arguments
ipfmodel |
an ipfModel |
test_fgp |
a matrix or a data frame containing the fingerprints of the test set |
test_pos |
a matrix or a data frame containing the position of the test set fingerprints |
Value
An S3 object of class ipfEstimation, with the following properties: location -> a matrix with the predicted locations errors -> a numeric vector with the errors neighbors -> a matrix with k columns and nrow(test) rows, with the k most similar training observation for each test observation weights -> a matrix with k columns and nrow(test) rows, with the weights
Examples
model <- ipfKnn(ipftrain[, 1:168], ipftrain[, 169:170])
estimation <- ipfEstimate(model, ipftest[, 1:168], ipftest[, 169:170])
## Not run:
model <- ipfProbabilistic(ipftrain[, 1:168], ipftrain[, 169:170], k = 9, delta = 10)
estimation <- ipfEstimate(model, ipftest[, 1:170], ipftest[, 169:170])
## End(Not run)
[Package ipft version 0.7.2 Index]