public class SeedsCountMiningAssistant extends MiningAssistant
| Modifier and Type | Field and Description |
|---|---|
protected long |
subjectSchemaCount |
allowConstants, avoidUnboundTypeAtoms, bodyExcludedRelations, bodyTargetRelations, confidenceMetric, countAlwaysOnSubject, enabledConfidenceUpperBounds, enabledFunctionalityHeuristic, enablePerfectRules, enableQueryRewriting, enforceConstants, exploitMaxLengthOption, headCardinalities, headExcludedRelations, kb, kbSchema, maxDepth, minPcaConfidence, minStdConfidence, recursivityLimit, subPropertyString, totalObjectCount, totalSubjectCount, typeString, verbose| Constructor and Description |
|---|
SeedsCountMiningAssistant(KB dataSource,
KB schemaSource) |
| Modifier and Type | Method and Description |
|---|---|
void |
calculateConfidenceMetrics(Rule candidate)
It computes the standard and the PCA confidence of a given rule.
|
void |
getClosingAtoms(Rule query,
double minSupportThreshold,
java.util.Collection<Rule> output)
Returns all candidates obtained by binding two values
|
void |
getDanglingAtoms(Rule query,
double minCardinality,
java.util.Collection<Rule> output)
Returns all candidates obtained by adding a new dangling atom to the query.
|
void |
getInitialAtoms(double minSupportThreshold,
java.util.Collection<Rule> output)
Returns a list of one-atom queries using the relations from the KB
|
protected void |
getInstantiatedAtoms(Rule query,
Rule originalQuery,
ByteString[] danglingEdge,
int danglingPosition,
double minSupportThreshold,
java.util.Collection<Rule> output) |
long |
getTotalCount(Rule candidate) |
buildInitialQueries, calculateConfidenceApproximationFor3Atoms, calculateConfidenceApproximationForGeneralCase, calculateConfidenceBoundsAndApproximations, canAddInstantiatedAtoms, computeCardinality, computePCAConfidence, computeStandardConfidence, findCountingVariable, getBodyExcludedRelations, getBodyTargetRelations, getConfidenceMetric, getDescription, getFactsCount, getHeadCardinality, getHeadExcludedRelations, getInitialAtomsFromSeeds, getInstantiatedAtoms, getInstantiatedAtoms, getKb, getKbSchema, getMaxDepth, getMinConfidence, getPcaConfidenceThreshold, getRecursivityLimit, getRelationCardinality, getRelationCardinality, getSubClasses, getTotalCount, getTotalObjectCount, getTotalSubjectCount, isAvoidUnboundTypeAtoms, isEnabledConfidenceUpperBounds, isEnabledFunctionalityHeuristic, isEnablePerfectRules, isEnableQueryRewriting, isEnforceConstants, isExploitMaxLengthOption, isVerbose, registerHeadRelation, setAllowConstants, setAvoidUnboundTypeAtoms, setBodyExcludedRelations, setConfidenceMetric, setCountAlwaysOnSubject, setEnabledConfidenceUpperBounds, setEnabledFunctionalityHeuristic, setEnablePerfectRules, setEnableQueryRewriting, setEnforceConstants, setExploitMaxLengthOption, setHeadExcludedRelations, setKbSchema, setMaxDepth, setPcaConfidenceThreshold, setRecursivityLimit, setStdConfidenceThreshold, setTargetBodyRelations, setVerbose, testConfidenceThresholds, testLengthpublic long getTotalCount(Rule candidate)
getTotalCount in class MiningAssistantprotected void getInstantiatedAtoms(Rule query, Rule originalQuery, ByteString[] danglingEdge, int danglingPosition, double minSupportThreshold, java.util.Collection<Rule> output)
public void getClosingAtoms(Rule query, double minSupportThreshold, java.util.Collection<Rule> output)
getClosingAtoms in class MiningAssistantcurrentNode - minSupportThreshold - omittedVariables - public void getInitialAtoms(double minSupportThreshold,
java.util.Collection<Rule> output)
MiningAssistantgetInitialAtoms in class MiningAssistantminSupportThreshold - Only relations of size bigger or equal than this value will
be considered.public void getDanglingAtoms(Rule query, double minCardinality, java.util.Collection<Rule> output)
MiningAssistantgetDanglingAtoms in class MiningAssistantpublic void calculateConfidenceMetrics(Rule candidate)
MiningAssistantcalculateConfidenceMetrics in class MiningAssistant