Add more optimization targets

This commit is contained in:
Elias Projahn 2021-10-21 11:42:44 +02:00
parent 064f75ddae
commit c0a1d965d7
2 changed files with 19 additions and 6 deletions

View file

@ -4,7 +4,7 @@
\alias{optimize_weights}
\title{Find the best weights to rank the results.}
\usage{
optimize_weights(results, methods, reference_gene_ids)
optimize_weights(results, methods, reference_gene_ids, target = "mean")
}
\arguments{
\item{results}{Results from \code{\link[=analyze]{analyze()}} or \code{\link[=ranking]{ranking()}}.}
@ -12,6 +12,9 @@ optimize_weights(results, methods, reference_gene_ids)
\item{methods}{Methods to include in the score.}
\item{reference_gene_ids}{IDs of the reference genes.}
\item{target}{The optimization target. It may be one of "mean", "min" or
"max" and results in the respective rank being optimized.}
}
\value{
Named list pairing method names with their optimal weights.