ipft (version 0.7.1)

ipfEstimate: 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

Run this code
# NOT RUN {
    model <- ipfKnn(ipftrain[, 1:168], ipftrain[, 169:170])
    estimation <- ipfEstimate(model, ipftest[, 1:168], ipftest[, 169:170])

# }
# NOT RUN {
    model <- ipfProb(ipftrain[, 1:168], ipftrain[, 169:170], k = 9, delta = 10)
    estimation <- ipfEstimate(model, ipftest[, 1:170], ipftest[, 169:170])
# }

Run the code above in your browser using DataLab