KnnPCFit {DSWE}R Documentation

KNN : Fit

Description

The function models the powercurve using KNN, against supplied arguments

Usage

KnnPCFit(data, xCol, yCol, subsetSelection = FALSE)

Arguments

data

a dataframe or a matrix, to be used in modelling

xCol

a vector or numeric values stating the column number of features

yCol

a numerical or a vector value stating the column number of target

subsetSelection

a boolean, default value is FALSE, if TRUE returns the best feature column number as xCol

Value

a list containing :

Examples


data = data1[c(1:100),]
xCol = 2
yCol = 7
subsetSelection = FALSE

knn_model = KnnPCFit(data, xCol, yCol, subsetSelection)


[Package DSWE version 1.8.2 Index]