public abstract static class Graphs.Motifs extends Graphs
contribution
of a set of motifs.
Also see Graphs.Motifs.M
.Modifier and Type | Class and Description |
---|---|
class |
Graphs.Motifs.M
Fully parameterised Models based around the notion of
frequent sub-graphs (patterns motifs).
|
Graphs.GERadaptive, Graphs.GERfixed, Graphs.IndependentEdges, Graphs.Motifs, Graphs.Skewed
UPModel.Est, UPModel.Transform
Function.Native.WithInverse
Function.Cts2Cts, Function.Cts2Cts2Cts, Function.CtsD2CtsD, Function.HasInverse, Function.Native, Function.Native2, Function.Native3
Value.Atomic, Value.Bool, Value.Char, Value.Chars, Value.Cts, Value.Defer, Value.Discrete, Value.Enum, Value.Inc_Or, Value.Int, Value.Lambda, Value.List, Value.Maybe, Value.Option, Value.Real, Value.Scannable, Value.Structured, Value.Triv, Value.Tuple
Modifier and Type | Field and Description |
---|---|
protected Model |
mdlMotif
The Model used for each individual
motifs
(subGraph, pattern) in a Graphs.Motifs.M -Model. |
protected Discretes.M |
mdlNmotifs
The (prior) Model of the number of
motifs
(motifs, patterns) in a Graphs.Motifs.M Model. |
int |
verbosity
Whether (verbosity>0) or not (verbosity==0) to Print
tracing information.
|
Modifier and Type | Method and Description |
---|---|
Graphs.Motifs.M |
greedy(Value ps,
Vector motifs,
Value ss)
Given candidate 'motifs' and ss=stats(Gs), estimate mdlV and then
return
greedy(motifs, mdlV, ss) . |
Graphs.Motifs.M |
greedy(Vector motifs,
Discretes.M mdlV,
Value ss)
Greedy search for a subset of some given 'motifs' that minimises
the message length under this Motif Model of Graphs.
|
double |
msgMotifs(Graph[] ms)
Return the cost, in nits, of stating 'N' motifs
m[0], ..., m[N-1] (including stating N) as part of some
fully parameterised
Model . |
double |
msgMotifs(Vector vm)
Return the cost, in nits, of stating 'N' motifs
m0, ..., mN-1 (including stating N).
|
abstract Graphs.Motifs.M |
sp2Model(double msg1,
double msg2,
Value sp)
Given two-part message lengths msg1 & msg2, and statistical
parameter sp, return a fully parameterised
M-Model . |
apply, defnParams, estimator, main, stats, stats, toString, transform
public int verbosity
protected Discretes.M mdlNmotifs
motifs
(motifs, patterns) in a Graphs.Motifs.M
Model.
Anything sensible will prefer "few" to "many".
NB. must be set by constructor of non-abstract subclass.protected Model mdlMotif
motifs
(subGraph, pattern) in a Graphs.Motifs.M
-Model. NB. must be
set by the constructor of non-abstract subclass.protected Motifs(Value dp)
public double msgMotifs(Graph[] ms)
Model
.public double msgMotifs(Vector vm)
Graphs.Motifs
.public Graphs.Motifs.M greedy(Vector motifs, Discretes.M mdlV, Value ss)
estimator
.public Graphs.Motifs.M greedy(Value ps, Vector motifs, Value ss)
greedy(motifs, mdlV, ss)
.public abstract Graphs.Motifs.M sp2Model(double msg1, double msg2, Value sp)
UPModel