Description Usage Arguments Author(s) Examples
View source: R/compileMultiRes.R
This function takes a list of objects returned by CNORwrapfuzzy (run using identical parameters, models, and data) and packages them together so they can be compared with plotMeanFuzzyFit and writeFuzzyNetwork. Because almost all training of cFL models are underdetermined problems, analyzing multiple runs together is essential.
1 | compileMultiRes(allRes, tag=NULL, show=TRUE)
|
allRes |
list of objects returned by the CNORwrapFuzzy function. |
tag |
If provided, save the results in 3 files. Each file starts with the string "filename" that is provided. (<tag>_allRes.RData, <tag>_allFinalMSEs.RData and <tag>_allFinalNumParams.RData) |
show |
plot the MSE and mean number of parameters versus threshold. Can
be switch off if |
M.K. Morris, T. Cokelaer
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | data(ToyModel, package="CellNOptR")
data(CNOlistToy,package="CellNOptR")
paramsList = defaultParametersFuzzy(CNOlistToy, ToyModel)
N = 10
allRes = list()
## Not run:
for (i in 1:N){
Res = CNORwrapFuzzy(CNOlistToy, ToyModel, paramsList)
allRes[[i]] = Res
}
summary = compileMultiRes(allRes)
summary$allFinalMSEs
summary$allFinalNumParams
# You can save the resuls in files using the tag argument
compileMultiRes(allRes, "output")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.