public final class DataSet extends Node
Modifier and Type | Field and Description |
---|---|
protected boolean |
complete
indicates if all the partitions are present
|
protected java.util.Vector |
missing
stores the missing partitions
|
protected boolean |
modified |
java.util.Vector |
tableVector |
centre, dialog, dsc, figure, id, image, m_bInputContinuous, m_bInputImprecise, m_bInputInteger, m_bInputMIL, m_bInputMissing, m_bInputMultiClass, m_bInputMultiOutput, m_bInputNominal, m_bOutputContinuous, m_bOutputImprecise, m_bOutputInteger, m_bOutputMIL, m_bOutputMissing, m_bOutputMultiClass, m_bOutputMultiOutput, m_bOutputNominal, m_sDatasetHasContinuous, m_sDatasetHasImprecise, m_sDatasetHasInteger, m_sDatasetHasMIL, m_sDatasetHasMissing, m_sDatasetHasMultiClass, m_sDatasetHasMultiOutput, m_sDatasetHasNominal, par, pd, type, type_lqd
Constructor and Description |
---|
DataSet()
Builder
|
DataSet(ExternalObjectDescription dsc,
java.awt.Point position,
GraphPanel p,
java.util.Vector table,
boolean modified,
int id,
int lqd) |
DataSet(ExternalObjectDescription dsc,
java.awt.Point position,
GraphPanel p,
java.util.Vector newTable,
int lqd)
Builder
|
Modifier and Type | Method and Description |
---|---|
void |
actInputOutput(ExternalObjectDescription dsc,
GraphPanel p)
Updates input and output variables
|
void |
actInputOutputLQD(ExternalObjectDescription dsc,
GraphPanel p,
DatasetXML[] list_dataset)
Updates input and output variables
|
void |
addMissingPartition(java.lang.String partition,
int k)
Adds a missing partition to the vector at a given position
|
void |
clearMissingVector()
Empties the missing partition vector
|
void |
contain(java.lang.String title,
int show,
Node destino,
Experiments parent)
Shows associated container
|
void |
draw(java.awt.Graphics2D g2,
boolean select)
Draws the node
|
java.util.Vector |
getMissingVector()
Gets the missing partitions vector
|
java.lang.String |
getTestAt(int i)
Get the test file at the indicated position
|
java.lang.String |
getTrainingAt(int i)
Get the training file at the indicated position
|
java.lang.String |
getTransAt(int i)
Get the transductive file file at the indicated position
|
boolean |
isComplete()
Test if the data set node has all the partitions (are available from disk)
|
void |
pushMissingIntoTable(int k)
Updates table of missing partitions
|
void |
showDialog()
Show data set dialog
|
getId, getPosicion, getPosition, getType, getTypelqd, isInside, setId, setPosicion, setPosition, setType, setTypelqd, updateState
public java.util.Vector tableVector
protected boolean modified
protected boolean complete
protected java.util.Vector missing
public DataSet()
public DataSet(ExternalObjectDescription dsc, java.awt.Point position, GraphPanel p, java.util.Vector newTable, int lqd)
dsc
- Dsc parentposition
- Position in the graphp
- Parent graphnewTable
- New vectorlqd
- LQD pertenencepublic DataSet(ExternalObjectDescription dsc, java.awt.Point position, GraphPanel p, java.util.Vector table, boolean modified, int id, int lqd)
dsc
- Dsc parentposition
- Position in the graphp
- Parent graphtable
- New vectormodified
- Is modifiedid
- Node idlqd
- LQD pertenencepublic void showDialog()
showDialog
in class Node
public void contain(java.lang.String title, int show, Node destino, Experiments parent)
public void actInputOutput(ExternalObjectDescription dsc, GraphPanel p)
actInputOutput
in class Node
dsc
- Parent dscp
- Parent graphpublic void actInputOutputLQD(ExternalObjectDescription dsc, GraphPanel p, DatasetXML[] list_dataset)
dsc
- Parent dscp
- Parent graphlist_dataset
- List of data setspublic void draw(java.awt.Graphics2D g2, boolean select)
public java.lang.String getTrainingAt(int i)
i
- The index of the training filepublic java.lang.String getTestAt(int i)
i
- The index of the test filepublic java.lang.String getTransAt(int i)
i
- The index of the test filepublic boolean isComplete()
public java.util.Vector getMissingVector()
public void addMissingPartition(java.lang.String partition, int k)
k
- position where the missing partition is insertedpublic void clearMissingVector()
public void pushMissingIntoTable(int k)
k
- Number of folds