Skip to contents

Converts an list of "SparseVec" objects onto a list of predomics objects

Usage

listOfSparseVecToListOfModels(X, y, clf, v, lobj = NULL, eval.all = FALSE)

Arguments

X:

dataset

y:

labels

clf:

classifier

v:

list of vectors of coeffs. For example, v=list( c(0.0,1.0,0.0,-1.0) , c(1.0,1.0,0.0,0.0) , c(0.0,1.0,1.0,-1.0) )

lobj:

a list of objects to add as elements in the model objects if not null (default:NULL)

eval.all:

evaluate population (default:FALSE)

Value

an model object