Description Usage Arguments Format Value Examples
.check_scores ensures that scores are suitable for diffusion
.available_methods is a character vector with the implemented scores
.check_method ensures that 'method' is a valid character
.check_metric ensures that 'metric' is a valid list of metric functions
.check_graph ensures that 'graph' is a valid igraph
object
.check_K ensures that 'K' is a formally valid kernel. Does not check for spd
1 2 3 4 5 6 7 8 9 10 11 | .check_scores(scores)
.available_methods
.check_method(method)
.check_metric(metric)
.check_graph(graph)
.check_K(K)
|
scores |
scores to check |
method |
object to test |
metric |
object to test |
graph |
object to test |
K |
object to test |
An object of class character
of length 7.
Functions return invisible()
but throw
warnings and errors as side effect
1 2 3 4 5 6 7 8 | data(graph_toy)
diffuStats:::.check_scores(diffuStats:::to_list(graph_toy$input_mat))
diffuStats:::.check_method("raw")
diffuStats:::.check_metric(list(auc = metric_fun(curve = "ROC")))
data(graph_toy)
diffuStats:::.check_graph(graph_toy)
data(graph_toy)
diffuStats:::.check_K(regularisedLaplacianKernel(graph_toy))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.