public class PerformanceKnowledgeBase
extends java.lang.Object
| Constructor and Description |
|---|
PerformanceKnowledgeBase() |
PerformanceKnowledgeBase(ai.libs.jaicore.basic.SQLAdapter sqlAdapter) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPerformanceSample(java.lang.String benchmarkName,
ComponentInstance componentInstance,
double score,
boolean addToDB) |
void |
addPerformanceSampleToDB(java.lang.String benchmarkName,
ComponentInstance componentInstance,
double score) |
weka.core.Instances |
createInstancesForPerformanceSamples(java.lang.String benchmarkName,
ComponentInstance composition) |
weka.core.Instance |
getInstanceForIndividualCI(java.lang.String benchmarkName,
ComponentInstance ci,
double score) |
weka.core.Instances |
getInstancesForCI(ComponentInstance ci) |
weka.core.Instances |
getInstancesForCIList(java.util.List<ComponentInstance> componentInstances) |
int |
getNumSamples(java.lang.String benchmarkName,
java.lang.String identifier)
Returns the number of samples for the given benchmark name and pipeline
identifier.
|
int |
getNumSamplesForComponent(java.lang.String benchmarkName,
Component component) |
int |
getNumSignificantSamples(java.lang.String benchmarkName,
java.lang.String identifier)
Returns the number of significant samples for the given benchmark name and
pipeline identifier.
|
java.util.Map<java.lang.String,java.util.HashMap<java.lang.String,weka.core.Instances>> |
getPerformanceInstancesIndividualComponents() |
weka.core.Instances |
getPerformanceSamples(java.lang.String benchmarkName,
ComponentInstance composition) |
java.util.Map<java.lang.String,java.util.HashMap<java.lang.String,java.util.List<org.apache.commons.lang3.tuple.Pair<ai.libs.hasco.knowledgebase.PerformanceKnowledgeBase.ParameterConfiguration,java.lang.Double>>>> |
getPerformanceSamplesByIdentifier() |
weka.core.Instances |
getPerformanceSamplesForIndividualComponent(java.lang.String benchmarkName,
Component component) |
java.lang.String |
getStringOfMaps() |
void |
initializeDBTables() |
boolean |
kCompletelyDistinctSamplesAvailable(java.lang.String benchmarkName,
ComponentInstance composition,
int minNum)
Checks whether at least k sample are available, that are pairwise distinct in
each of their attribute values.
|
boolean |
kDistinctAttributeValuesAvailable(java.lang.String benchmarkName,
ComponentInstance composition,
int minNum)
Checks whether k samples are available, which are
|
void |
loadPerformanceSamplesFromDB() |
void |
setPerformanceSamples(weka.core.Instances instances,
ComponentInstance composition,
java.lang.String benchmarkName) |
public PerformanceKnowledgeBase(ai.libs.jaicore.basic.SQLAdapter sqlAdapter)
public PerformanceKnowledgeBase()
public weka.core.Instances getInstancesForCI(ComponentInstance ci)
public weka.core.Instances getInstancesForCIList(java.util.List<ComponentInstance> componentInstances)
public void addPerformanceSample(java.lang.String benchmarkName,
ComponentInstance componentInstance,
double score,
boolean addToDB)
public weka.core.Instance getInstanceForIndividualCI(java.lang.String benchmarkName,
ComponentInstance ci,
double score)
public java.util.Map<java.lang.String,java.util.HashMap<java.lang.String,weka.core.Instances>> getPerformanceInstancesIndividualComponents()
public java.util.Map<java.lang.String,java.util.HashMap<java.lang.String,java.util.List<org.apache.commons.lang3.tuple.Pair<ai.libs.hasco.knowledgebase.PerformanceKnowledgeBase.ParameterConfiguration,java.lang.Double>>>> getPerformanceSamplesByIdentifier()
public java.lang.String getStringOfMaps()
public void initializeDBTables()
public void addPerformanceSampleToDB(java.lang.String benchmarkName,
ComponentInstance componentInstance,
double score)
public int getNumSamples(java.lang.String benchmarkName,
java.lang.String identifier)
benchmarkName - identifier - public int getNumSignificantSamples(java.lang.String benchmarkName,
java.lang.String identifier)
benchmarkName - identifier - public void loadPerformanceSamplesFromDB()
public boolean kDistinctAttributeValuesAvailable(java.lang.String benchmarkName,
ComponentInstance composition,
int minNum)
k - public boolean kCompletelyDistinctSamplesAvailable(java.lang.String benchmarkName,
ComponentInstance composition,
int minNum)
benchmarkName - composition - minNum - strictly positive minimum number of samplespublic weka.core.Instances getPerformanceSamples(java.lang.String benchmarkName,
ComponentInstance composition)
public weka.core.Instances createInstancesForPerformanceSamples(java.lang.String benchmarkName,
ComponentInstance composition)
public weka.core.Instances getPerformanceSamplesForIndividualComponent(java.lang.String benchmarkName,
Component component)
public int getNumSamplesForComponent(java.lang.String benchmarkName,
Component component)
public void setPerformanceSamples(weka.core.Instances instances,
ComponentInstance composition,
java.lang.String benchmarkName)