Take a vector fobs
of assembly performances
over several experiments,
and return a vector of performances
predicted as the geometric mean
of performances of all assemblages
that share a same assembly motif,
by excluding the assemblage to predict.
validate_gmean_bymot_LOO_xpr(fobs, assMotif, xpr)
a numeric vector. The vector fobs
contains the
quantitative performances of assemblages.
a vector of labels of length(fobs)
.
The vector assMotif
contains the assembly motifs of assemblages.
a vector of numerics of length(fobs)
.
The vector xpr
contains the weight of each experiment,
and the labels (in names(xpr)
) of different experiments.
The weigth of each experiment is used
in the computation of the Residual Sum of Squares
in the function rss_clustering
.
The used formula is rss
if each experiment has the same weight.
The used formula is wrss
(barycenter of RSS for each experiment)
if each experiment has different weights.
All assemblages that belong to a given experiment
should then have a same weigth.
Each experiment is identified by its names (names(xpr)
)
and the RSS of each experiment is weighted by values of xpr
.
The vector is generated
by the function
stats::setNames
.
Return a vector of length(fobs)
.
Its values are computed as the geometric mean
of performances of assemblages
that share a same assembly motif,
experiment by experiment.
by excluding the assemblage to predict.
Predicted performances are computed
using geometric mean (opt.mean = "amean"
)
of performances of assemblages
that share a same assembly motif (opt.model = "bymot"
),
experiment by experiment,
by excluding the assemblage to predict.
validate_amean_bymot_LOO_xpr
arithmetic mean
by assembly motif
validate_amean_byelt_LOO_xpr
arithmetic mean
by elements occurring within assembly motif
validate_gmean_byelt_LOO_xpr
geometric mean
by elements occurring within assembly motif