public class PerformanceDBAdapter
extends java.lang.Object
implements java.io.Closeable
ReproducibleInstances is saved as well as the solution that produced
the performance value.| Constructor and Description |
|---|
PerformanceDBAdapter(ai.libs.jaicore.basic.SQLAdapter sqlAdapter,
java.lang.String performanceSampleTableName) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
java.util.Optional<java.lang.Double> |
exists(ai.libs.hasco.model.ComponentInstance composition,
ai.libs.jaicore.ml.cache.ReproducibleInstances reproducibleInstances,
ai.libs.jaicore.ml.cache.ReproducibleInstances testData,
java.lang.String className)
Checks whether there is an entry for the composition and corresponding
evaluation specified by the reproducable instances.
|
void |
store(ai.libs.hasco.model.ComponentInstance composition,
ai.libs.jaicore.ml.cache.ReproducibleInstances reproducibleInstances,
ai.libs.jaicore.ml.cache.ReproducibleInstances testData,
double score,
java.lang.String className,
long evaluationTime)
Stores the composition, the trajectory and the achieved score in the
database.
|
public PerformanceDBAdapter(ai.libs.jaicore.basic.SQLAdapter sqlAdapter,
java.lang.String performanceSampleTableName)
public java.util.Optional<java.lang.Double> exists(ai.libs.hasco.model.ComponentInstance composition,
ai.libs.jaicore.ml.cache.ReproducibleInstances reproducibleInstances,
ai.libs.jaicore.ml.cache.ReproducibleInstances testData,
java.lang.String className)
composition - - Solution composition.reproducableInstances - - Instances object that includes the trajectory,
i.e. all operations that have been applied to
the instances like loading, splitting etc.testData - - The reproducible instances of the test data
used for this evaluation processclassName - - the java qualified class name of the loss
function that was usedpublic void store(ai.libs.hasco.model.ComponentInstance composition,
ai.libs.jaicore.ml.cache.ReproducibleInstances reproducibleInstances,
ai.libs.jaicore.ml.cache.ReproducibleInstances testData,
double score,
java.lang.String className,
long evaluationTime)
composition - - Solution compositionreproducableInstances - - Instances object that includes the trajectory,
i.e. all operations that have been applied to
the instances like loading, splitting etc.testData - - The reproducible instances of the test data
used for this evaluation processscore - - Score achieved by the composition on the
reproducible instancesclassName - - The java qualified class name of the loss
function that was usedevaluationTime - - The time it took for the corresponding
evaluation in millisecondspublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOException