get.solution: Select solutions from a solution path

Description Usage Arguments Details

Description

Choose solutions from a solution path based on number of edges, value of regularization parameter lambda, or index.

Usage

1
get.solution(x, edges, lambda, index)

Arguments

x

a sparsebnPath object.

edges

number of edges to search for.

lambda

value of regularization parameter to search for.

index

integer index to select.

Details

For edges (resp. lambda), the solution with the closest number of edges (resp. regularization parameter) is returned. If there is no match within a tolerance of 0.1 for lambda, nothing is returned. Fuzzy matching is not used for when selecting by index.

If there is more than one match (for example, by number of edges), then the first such estimate is returned. Note that select(x, index = j) is equivalent to (but slightly slower than) x[[j]].


itsrainingdata/sparsebnUtils documentation built on June 5, 2019, 5:43 p.m.