compileMultiRes: Compiles results from multiple runs and produces graph for...

Description Usage Arguments Author(s) Examples

Description

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.

Usage

1
	compileMultiRes(allRes, tag=NULL, show=TRUE)

Arguments

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 show=FALSE

Author(s)

M.K. Morris, T. Cokelaer

Examples

 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)

saezlab/CNORfuzzy documentation built on May 3, 2019, 1:49 p.m.