SvmPCFit {DSWE}R Documentation

SVM based power curve modelling

Description

SVM based power curve modelling

Usage

SvmPCFit(trainX, trainY, testX, kernel = "radial")

Arguments

trainX

a matrix or dataframe to be used in modelling

trainY

a numeric or vector as a target

testX

a matrix or dataframe, to be used in computing the predictions

kernel

default is 'radial' else can be 'linear', 'polynomial' and 'sigmoid'

Value

a vector or numeric predictions on user provided test data

Examples


data = data1
trainX = as.matrix(data[c(1:100),2])
trainY = data[c(1:100),7]
testX = as.matrix(data[c(101:110),2])

Svm_prediction = SvmPCFit(trainX, trainY, testX)


[Package DSWE version 1.8.2 Index]