|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread felix.dstruct.StatOperator felix.operator.COREFOperator
public class COREFOperator
A COREF operator in Felix.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class felix.dstruct.StatOperator |
---|
StatOperator.OPType |
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
boolean |
usePairwiseRepresentation
Whether represent clusterings results using pairwise representation. |
Fields inherited from class felix.dstruct.StatOperator |
---|
allRelevantFelixClause, belongsToBucket, clauseConstraints, commonCandidate, currentState, dataCrackerSignature, db, dd_PriorClauses, fq, inputPredicates, isBinaryArbLR, isMarginal, nStartingRules, outputPredicates, partitionedInto, throwAwayPredicatesNames, type |
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
COREFOperator(FelixQuery _fq,
java.util.HashSet<FelixPredicate> _goalPredicates,
FelixCommandOptions _opt)
The constructor of COREFOperator. |
Method Summary | |
---|---|
void |
cluster()
Clustering worker. |
void |
dumpAnswerToDBTable(tuffy.mln.Predicate p,
tuffy.util.UnionFind<java.lang.Integer> clusters,
java.util.ArrayList<java.lang.Integer> nodes)
Dump answers to a database table (or create view for it). |
java.lang.String |
explain()
Human-readable representation of the logic plan. |
int |
getDomainSize(tuffy.mln.Predicate p)
Get the size of domain on which clustering is conducted. |
void |
learn()
|
void |
prepare()
Prepares operator for execution. |
void |
prepareDMO(java.util.HashSet<tuffy.ra.ConjunctiveQuery> rules)
Generate Data Movement Operator used by this Coref Operator. |
java.util.List<java.lang.Integer> |
retrieveHardNegEdges(java.lang.Integer m1)
Get hard-neg neighbors of a given node. |
java.util.List<java.lang.Integer> |
retrieveNeighbors(java.lang.Integer m1)
Get soft-pos neighbors of a given node. |
void |
run()
Executes operator. |
Methods inherited from class felix.dstruct.StatOperator |
---|
clone, getAllDMOs, getPrecedence, getTargetPredicateIfHasOnlyOne, pushPredicateScopes, registerRelevantClause, sealDefinition, setPrecedence, toNoParString, toString, translateFelixClasesIntoFactorGraphEdgeQueries, translateFelixClasesIntoLearningQueriesForVictor |
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, yield |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public boolean usePairwiseRepresentation
Constructor Detail |
---|
public COREFOperator(FelixQuery _fq, java.util.HashSet<FelixPredicate> _goalPredicates, FelixCommandOptions _opt)
_fq
- Felix query._goalPredicates
- target predicates of this coref operator._opt
- Command line options of this Felix run.Method Detail |
---|
public int getDomainSize(tuffy.mln.Predicate p)
p
- clustering predicate
public void prepareDMO(java.util.HashSet<tuffy.ra.ConjunctiveQuery> rules)
rules
- rules defining this operator.public void prepare()
prepare
in class StatOperator
public void run()
run
in interface java.lang.Runnable
run
in class StatOperator
public java.lang.String explain()
StatOperator
explain
in class StatOperator
public void cluster() throws java.lang.Exception
java.lang.Exception
public java.util.List<java.lang.Integer> retrieveNeighbors(java.lang.Integer m1) throws java.sql.SQLException
m1
-
java.sql.SQLException
public java.util.List<java.lang.Integer> retrieveHardNegEdges(java.lang.Integer m1) throws java.sql.SQLException
m1
-
java.sql.SQLException
public void dumpAnswerToDBTable(tuffy.mln.Predicate p, tuffy.util.UnionFind<java.lang.Integer> clusters, java.util.ArrayList<java.lang.Integer> nodes)
p
- clustering predicate.clusters
- clustering result.nodes
- domain on which clustering is conducted.public void learn()
learn
in class StatOperator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |