|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.knowceans.topics.cgen.MixItem org.knowceans.topics.cgen.MixEdge
public class MixEdge
represents a mixture edge
Field Summary | |
---|---|
static int |
C3MERGED
|
(package private) java.lang.String |
constT
constant value for T or null |
static int |
E1E3SINGLE
E1 and E3 can often be treated identical, the edge has simply different children |
static int |
E1SINGLE
E1 single output (linear structure) |
static int |
E2MULTI
E2 multiple input |
static int |
E3COUPLED
E3 multiple coupled outputs |
static int |
E4AGGREG
E4 aggregation (set a priori) |
static int |
HIDDEN
unknown sequence (= non-terminal) |
static int |
QFIXED
qualifies HIDDEN to be fixed at test time (chile topic or visible nodes that don't change between training and testing) |
static int |
QHIDDEN
semi-supervised setting: qualifies VISIBLE to be unknown at test time |
static int |
ROOT
sequence index = (= root in graph) |
(package private) MixSequence |
sequence
relevant sequence |
(package private) java.util.List<MixEdge> |
siblingsE2
siblings with identical variable |
(package private) boolean |
sparse
whether this edge transports sparse data, i.e., indexed by its parent's observed input |
(package private) java.lang.String |
T
range name |
static int |
VISANY
|
static int |
VISIBLE
data sequence (= leaf in graph) |
static int |
VISROOT
sequence index = (= root in graph with non-index values, labels) |
(package private) java.lang.String |
x
variable name |
Fields inherited from class org.knowceans.topics.cgen.MixItem |
---|
children, datatype, indent, linktype, name, parents, UNRECOG |
Constructor Summary | |
---|---|
MixEdge(java.lang.String name,
java.lang.String x,
java.lang.String T,
MixSequence seq)
create a mixture edge |
Method Summary | |
---|---|
java.lang.String |
assignTopic(boolean q)
|
java.lang.String |
assignVarsInput()
assign input to the variables of this edge |
boolean |
check(java.io.PrintStream out)
|
boolean |
classify()
classify the data and linking types of this edge. |
void |
classifyPostNode()
after node classification, use this to finalise. |
java.lang.String |
declareVars()
declare the variables of this node |
MixNode |
getChildNode(int i)
|
java.util.List<MixNode> |
getChildren()
|
java.lang.String |
getName()
get a short name of this node |
MixNode |
getParentNode(int i)
|
java.util.List<MixNode> |
getParents()
|
java.lang.String |
getTopic(boolean q,
boolean declare)
get the current topic |
java.lang.String |
getVariable()
|
java.lang.String |
initVars(boolean q)
initialise variables |
java.lang.String |
listTypedVarsInput(java.util.Set<java.lang.String> unique)
list the variables needed at the input |
java.lang.String |
listVarsInput(java.util.Set<java.lang.String> unique)
list the variables needed at the input |
java.lang.String |
printDetails()
|
java.lang.String |
printType()
print the type of this node |
java.lang.String |
qualify(java.util.List<MixEdge> ee,
boolean q)
get edge qualified as an index. |
void |
setConstants(java.util.Map<java.lang.String,java.lang.String> constants)
set any constant for this edge (currently T) |
java.lang.String |
toString()
|
Methods inherited from class org.knowceans.topics.cgen.MixItem |
---|
typeString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int ROOT
public static final int VISROOT
public static final int HIDDEN
public static final int VISIBLE
public static final int QFIXED
public static final int QHIDDEN
public static final int VISANY
public static final int E1SINGLE
public static final int E2MULTI
public static final int E3COUPLED
public static final int E1E3SINGLE
public static final int E4AGGREG
public static final int C3MERGED
java.lang.String x
java.lang.String T
java.lang.String constT
MixSequence sequence
boolean sparse
java.util.List<MixEdge> siblingsE2
Constructor Detail |
---|
public MixEdge(java.lang.String name, java.lang.String x, java.lang.String T, MixSequence seq)
name
- x
- varT
- rangeseq
- sequenceMethod Detail |
---|
public boolean classify()
classify
in class MixItem
public void classifyPostNode()
public MixNode getChildNode(int i)
public MixNode getParentNode(int i)
public java.util.List<MixNode> getParents()
getParents
in class MixItem
public java.util.List<MixNode> getChildren()
getChildren
in class MixItem
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String printType()
MixItem
printType
in class MixItem
public java.lang.String printDetails()
printDetails
in class MixItem
public java.lang.String getVariable()
getVariable
in class MixItem
public boolean check(java.io.PrintStream out)
check
in class MixItem
public void setConstants(java.util.Map<java.lang.String,java.lang.String> constants)
setConstants
in class MixItem
public java.lang.String listVarsInput(java.util.Set<java.lang.String> unique)
listVarsInput
in class MixItem
public java.lang.String listTypedVarsInput(java.util.Set<java.lang.String> unique)
listTypedVarsInput
in class MixItem
public java.lang.String assignVarsInput()
assignVarsInput
in class MixItem
public java.lang.String declareVars()
MixItem
declareVars
in class MixItem
public java.lang.String getName()
MixItem
getName
in class MixItem
public java.lang.String initVars(boolean q)
MixItem
initVars
in class MixItem
public java.lang.String getTopic(boolean q, boolean declare)
q
- declare
-
public java.lang.String assignTopic(boolean q)
public java.lang.String qualify(java.util.List<MixEdge> ee, boolean q)
ee
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |