public class ReproducibleInstances
extends weka.core.Instances
LoadDataSetInstruction
and changed by FoldBasedSubsetInstruction
s saved as a list of instructions.
This history of the instances can be converted to json and used to reproduce a specific set of instances.Constructor and Description |
---|
ReproducibleInstances(ReproducibleInstances dataset) |
Modifier and Type | Method and Description |
---|---|
static ReproducibleInstances |
fromARFF(java.io.File arffFile) |
static ReproducibleInstances |
fromHistory(InstructionGraph history,
ai.libs.jaicore.basic.sets.Pair<java.lang.String,java.lang.Integer> outputUnitOfHistory)
Creates a new
ReproducibleInstances object. |
static ReproducibleInstances |
fromOpenML(int id,
java.lang.String apiKey)
Creates a new
ReproducibleInstances object. |
InstructionGraph |
getInstructions() |
ai.libs.jaicore.basic.sets.Pair<java.lang.String,java.lang.Integer> |
getOutputUnit() |
boolean |
isCacheLookup()
If true signifies that performance on this data should be looked up in cache
|
boolean |
isCacheStorage()
If true signifies that performance evaluation should be stored.
|
ReproducibleInstances |
reduceWithInstruction(java.lang.String nameOfRefinementInstruction,
Instruction instruction,
int outputOfRefinementInstruction)
Creates a reduced version of the dataset by using an instruction with one input and one output
|
void |
setCacheLookup(boolean cacheLookup)
If true signifies that performance on this data should be looked up in cache
|
void |
setCacheStorage(boolean cacheStorage)
If set to true, signifies that performance evaluation should be stored.
|
void |
setOutputUnitWithoutRecomputation(ai.libs.jaicore.basic.sets.Pair<java.lang.String,java.lang.Integer> outputUnit) |
add, add, allAttributeWeightsIdentical, allInstanceWeightsIdentical, attribute, attribute, attributeStats, attributeToDoubleArray, checkForAttributeType, checkForStringAttributes, checkInstance, classAttribute, classIndex, compactify, copyInstances, delete, delete, deleteAttributeAt, deleteAttributeType, deleteStringAttributes, deleteWithMissing, deleteWithMissing, deleteWithMissingClass, enumerateAttributes, enumerateInstances, equalHeaders, equalHeadersMsg, firstInstance, get, getRandomNumberGenerator, getRevision, initialize, insertAttributeAt, instance, instancesAndWeights, kthSmallestValue, kthSmallestValue, lastInstance, main, meanOrMode, meanOrMode, mergeInstances, numAttributes, numClasses, numDistinctValues, numDistinctValues, numInstances, randomize, readInstance, relationName, remove, renameAttribute, renameAttribute, renameAttributeValue, renameAttributeValue, replaceAttributeAt, resample, resampleWithWeights, resampleWithWeights, resampleWithWeights, resampleWithWeights, resampleWithWeights, resampleWithWeights, resampleWithWeights, set, setAttributeWeight, setAttributeWeight, setClass, setClassIndex, setRelationName, size, sort, sort, sortBasedOnNominalAttribute, stableSort, stableSort, stratify, stratStep, stringFreeStructure, stringWithoutHeader, sumOfWeights, swap, test, testCV, toString, toSummaryString, trainCV, trainCV, variance, variance, variances
addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public ReproducibleInstances(ReproducibleInstances dataset)
public static ReproducibleInstances fromHistory(InstructionGraph history, ai.libs.jaicore.basic.sets.Pair<java.lang.String,java.lang.Integer> outputUnitOfHistory) throws InstructionFailedException, java.lang.InterruptedException
ReproducibleInstances
object. Data is loaded from
openml.org.id
- The id of the openml datasetapiKey
- apikey to useReproducibleInstances
objectjava.io.IOException
- if something goes wrong while loading Instances from openmljava.lang.InterruptedException
InstructionFailedException
public static ReproducibleInstances fromOpenML(int id, java.lang.String apiKey) throws InstructionFailedException, java.lang.InterruptedException
ReproducibleInstances
object. Data is loaded from
openml.org.id
- The id of the openml datasetapiKey
- apikey to useReproducibleInstances
objectjava.io.IOException
- if something goes wrong while loading Instances from openmljava.lang.InterruptedException
InstructionFailedException
public static ReproducibleInstances fromARFF(java.io.File arffFile) throws InstructionFailedException, java.lang.InterruptedException
InstructionFailedException
java.lang.InterruptedException
public InstructionGraph getInstructions()
public ai.libs.jaicore.basic.sets.Pair<java.lang.String,java.lang.Integer> getOutputUnit()
public void setOutputUnitWithoutRecomputation(ai.libs.jaicore.basic.sets.Pair<java.lang.String,java.lang.Integer> outputUnit)
public boolean isCacheStorage()
public void setCacheStorage(boolean cacheStorage)
cacheStorage
- the cacheStorage to setpublic boolean isCacheLookup()
public void setCacheLookup(boolean cacheLookup)
cacheLookup
- the cacheLookup to setpublic ReproducibleInstances reduceWithInstruction(java.lang.String nameOfRefinementInstruction, Instruction instruction, int outputOfRefinementInstruction) throws java.lang.ClassNotFoundException, InstructionFailedException, java.lang.InterruptedException
nameOfRefinementInstruction
- instruction
- outputOfRefinementInstruction
- java.lang.InterruptedException
InstructionFailedException
java.lang.ClassNotFoundException