phi {IRon} | R Documentation |
Obtain the relevance of data points
Description
The phi function retrieves the relevance value of the values in a target variable. It does so by resorting to the Piecewise Cubic Hermite Interpolation Polynomial method for interpolating over a set of maximum and minimum relevance points. The notion of relevance is associated with rarity.Nonetheless, this notion may depend on the domain experts knowledge
Usage
phi(y, phi.parms = NULL)
Arguments
y |
The target variable of a given data set |
phi.parms |
The relevance function providing the data points where the pairs of values-relevance are known |
Value
A vector with the relevance values of a given target variable
Examples
library(IRon)
data(accel)
ind <- sample(1:nrow(accel),0.75*nrow(accel))
train <- accel[ind,]
test <- accel[-ind,]
ph <- phi.control(train$acceleration)
phis <- phi(test$acceleration,phi.parms=ph)
plot(test$acceleration,phis,xlab="Y",ylab="Relevance")
[Package IRon version 0.1.4 Index]