BuiltInEnsembles | R Documentation |
EvoWeaver has best performance with an ensemble method combining individual evidence streams. This data file provides pretrained models for ease of use. These models are trained on genes from Streptomyces species.
These models are used internally if the user does not provide their own model, and aren't explicitly designed to be accessed by the user.
See the examples for how to train your own ensemble model.
data("BuiltInEnsembles")
The data contain a list of objects of class glm
.
## Training own ensemble method to avoid
## using built-ins
exData <- get(data("ExampleStreptomycesData"))
ew <- EvoWeaver(exData$Genes[1:50])
datavals <- predict(ew, NoPrediction=TRUE)
# Make sure the actual values correspond to the right pairs!
# This example just picks random numbers
# Do not do this for your own models
actual_values <- sample(c(0,1), nrow(datavals), replace=TRUE)
datavals[,'y'] <- actual_values
myModel <- glm(y~., datavals[,-c(1,2)], family='binomial')
predictionPW <- EvoWeaver(exData$Genes[51:60])
predict(predictionPW,
PretrainedModel=myModel)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.