Learn R Programming

ELMSurv (version 0.6)

predict.ELMBJ: ELMBJ

Description

Predicting from A Kernel Extreme Learning Machine Using the Buckley-James estimator

Usage

# S3 method for ELMBJ
predict(object, testx, ...)

Arguments

object

An object that inherits from class ELMBJEN.

testx

A data frame in which to look for variables with which to predict.

...

Additional arguments.

Value

List of returned values

trainMSE Mean Square Error(MSE) on training data.
newy Esitmated survival times of training data by the Buckley-James estimator.
outputWeight Weights of the output layer in ELM.
testpre The estimated survival times for testx data.

References

  • Hong Wang et al (2017). A Survival Ensemble of Extreme Learning Machine. Applied Intelligence, DOI:10.1007/s10489-017-1063-4.

See Also

ELMBJEN

Examples

Run this code
# NOT RUN {
set.seed(123)
require(ELMSurv)
require(survival)
#Lung DATA
data(lung)
lung=na.omit(lung)
lung[,3]=lung[,3]-1
n=dim(lung)[1]
L=sample(1:n,ceiling(n*0.5))
trset<-lung[L,]
teset<-lung[-L,]
rii=c(2,3)
#A kernel ELM base model
kerelmsurv=ELMBJ(trset[,-rii],Surv(trset[,rii[1]],trset[,rii[2]]))
testpre=predict(kerelmsurv,teset[,-c(rii)])
# }

Run the code above in your browser using DataLab