public class AMIE
extends java.lang.Object
| Constructor and Description |
|---|
AMIE(MiningAssistant assistant,
int minInitialSupport,
double threshold,
Metric metric,
int nThreads) |
| Modifier and Type | Method and Description |
|---|---|
MiningAssistant |
getAssistant() |
static AMIE |
getInstance(java.lang.String[] args)
Gets an instance of AMIE configured according to the command line arguments.
|
static AMIE |
getLossyInstance(KB db,
double minPCAConfidence,
int minSupport)
Returns an instance of AMIE that enables the lossy optimizations, i.e., optimizations that
optimize for runtime but that could in principle omit some rules that should be mined.
|
static AMIE |
getLossyVanillaSettingInstance(KB db,
double minPCAConfidence,
int startSupport)
Returns an (vanilla setting) instance of AMIE that enables the lossy optimizations, i.e., optimizations that
optimize for runtime but that could in principle omit some rules that should be mined.
|
Metric |
getPruningMetric() |
java.util.Collection<javatools.datatypes.ByteString> |
getSeeds() |
static AMIE |
getVanillaSettingInstance(KB db)
Returns an instance of AMIE that mines rules on the given KB using
the vanilla setting of head coverage 1% and no confidence threshold.
|
static AMIE |
getVanillaSettingInstance(KB db,
double minPCAConfidence)
Returns an instance of AMIE that mines rules on the given KB using
the vanilla setting of head coverage 1% and a given PCA confidence threshold
|
boolean |
isRealTime() |
boolean |
isVerbose() |
static void |
main(java.lang.String[] args)
AMIE's main program
|
java.util.List<Rule> |
mine()
The key method which returns a set of rules mined from the KB based on
the AMIE object's configuration.
|
void |
setCheckParentsOfDegree2(boolean booleanVal) |
void |
setPruningMetric(Metric pruningMetric) |
void |
setRealTime(boolean realTime) |
void |
setSeeds(java.util.Collection<javatools.datatypes.ByteString> seeds) |
public AMIE(MiningAssistant assistant, int minInitialSupport, double threshold, Metric metric, int nThreads)
assistant - An object that implements the logic of the mining operators.minInitialSupport - If head coverage is defined as pruning metric,
it is the minimum size for a relation to be considered in the mining.threshold - The minimum support threshold: it can be either a head
coverage ratio threshold or an absolute number.metric - Head coverage or support.public MiningAssistant getAssistant()
public boolean isVerbose()
public boolean isRealTime()
public void setRealTime(boolean realTime)
public java.util.Collection<javatools.datatypes.ByteString> getSeeds()
public void setSeeds(java.util.Collection<javatools.datatypes.ByteString> seeds)
public Metric getPruningMetric()
public void setPruningMetric(Metric pruningMetric)
public java.util.List<Rule> mine() throws java.lang.Exception
java.lang.Exceptionpublic void setCheckParentsOfDegree2(boolean booleanVal)
public static AMIE getVanillaSettingInstance(KB db)
db - public static AMIE getVanillaSettingInstance(KB db, double minPCAConfidence)
db - public static AMIE getLossyVanillaSettingInstance(KB db, double minPCAConfidence, int startSupport)
db - minPCAConfidence - startSupport - public static AMIE getLossyInstance(KB db, double minPCAConfidence, int minSupport)
db - minPCAConfidence - minSupport - public static AMIE getInstance(java.lang.String[] args) throws java.io.IOException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.IllegalArgumentException, java.lang.reflect.InvocationTargetException
args - java.io.IOExceptionjava.lang.reflect.InvocationTargetExceptionjava.lang.IllegalArgumentExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionpublic static void main(java.lang.String[] args)
throws java.lang.Exception
args - java.lang.Exception