Description Usage Arguments Value See Also
sg.bern.xval_classifier
Bernoulli Subgraph Classifier with Cross Validation to determine the optimal subgraph.
1 2 | sg.bern.xval_classifier(samp, Y, nedges, coherent = FALSE, tstat = "fisher",
xval = "loo", folds = NaN)
|
samp |
a list or array of graphs with arbitrary labelling. - if samp is a list, then it should have s elements of dimensions n x n.
|
Y |
s the class labels. |
nedges |
z an array where each element is the number of edges to look for, arbitrarily breaking ties as necessary. |
coherent=FALSE |
if FALSE, estimate an incoherent subgraph, otherwise an integer indicating the number of vertices in the coherent subgraph. |
tstat="fisher" |
the test statistic to use. options are fisher's exact ("fisher") and chi-squared ("chisq"). |
xval="loo" |
the cross-validation options to use. Options are "loo" (leave-one-out) and "kfold" (K-fold). |
folds=NaN |
the number of folds to do if xval is set to kfold. |
subgraph n x n an array indicating whether an edge is present or not present in the subgraph.
p n x n x c the probability per edge of being connected per class for c classes.
sg.bern.compute_graph_statistics
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.