powered by
SVM based power curve modelling
SvmPCFit(trainX, trainY, testX, kernel = "radial")
a vector or numeric predictions on user provided test data
a matrix or dataframe to be used in modelling
a numeric or vector as a target
a matrix or dataframe, to be used in computing the predictions
default is 'radial' else can be 'linear', 'polynomial' and 'sigmoid'
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)
Run the code above in your browser using DataLab