Description Usage Arguments Details Methods Examples
Convenience wrapper class for solution paths of DAG learning algorithms: This class represents an entire
solution path of an algorithm. Its components are of type sparsebnFit
. Also inherits
from list
.
1 2 3 4 5 6 7 8 9 10 11 12 |
x |
A |
verbose |
If |
... |
(optional) additional arguments. |
object |
an object of type |
labels |
|
Each value of lambda in the (discrete) solution path corresponds to a single DAG estimate (see Aragam and Zhou (2015) for details).
Internally, this estimate is represented by a sparsebnFit
object. The full solution
path is then represented as a list
of sparsebnFit
objects: This class is essentially a wrapper for this list.
Most methods for sparsebnPath
objects simply apply lapply
to the
object in question. The exceptions to this rule apply when the output will always be the same
for every component; e.g. num.nodes
and num.samples
.
get.adjacency.matrix
, get.lambdas
,
num.nodes
, num.edges
, num.samples
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Not run:
### Learn the cytometry network
library(sparsebn)
data(cytometryContinuous) # from the sparsebn package
cyto.data <- sparsebnData(cytometryContinuous[["data"]], type = "continuous")
cyto.learn <- estimate.dag(cyto.data)
### Inspect the output
class(cyto.learn)
print(cyto.learn)
plot(cyto.learn)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.