public class EducationalRunKeelTxt
extends java.lang.Object
This class run a iteration of a experiment when the method doIterate() is invoqued. successive invocations finalize the experiment. isFinished() method return true if all partitions are completed
Constructor and Description |
---|
EducationalRunKeelTxt(int experimentType)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
calculateActualSeed()
Method to calculate seed for actual partition
The config.txt file is inspected
|
java.lang.String |
calculatePartitionDatNameFile(int countPartitions)
Return the path for PartitionDat File
Method to calculate name of partition (training or test)
The config.txt file is inspected
|
void |
doIterate()
This method run a partition and creates the report
when all partitions of the experiment are finished
|
java.util.List<Element> |
getActualJobSentences()
Return the Actual jobs Sentences
|
java.lang.String |
getActualNameExperiment()
Get the experiment that is running
|
boolean |
getexecExternoFinalizado()
This method return a control variable used
for GUI EjecucionDocente.
|
int |
getExperimentType()
This methos get type problem, classification or regression
|
int |
getnJobs()
This method get number of jobs
|
int |
getNParticion()
This method return number of th actual partition
|
int |
getNRealPartition()
Get number partition of a experiment (not global partition)
|
int |
getNumberofJobFinished()
Get the number of Jobs that is finished actually
|
double |
getPartitionTime()
This method return the compute time for a partition
|
int |
getPartitionType()
This methos get type partitions, k-fold or 5x2
|
java.lang.String |
getProblemType()
Return type of problem
|
int |
getTotalPartitions()
This methos return the partition total number
|
boolean |
isFinished()
This method return the state of the experiment.
|
boolean |
isInterrumpted()
This methos return if a partition is interrupted
for the extern user
True, interrupted
False, no interrupted
|
void |
killProcess()
This method is used for to kill the experiment.
|
boolean |
nJobFinished()
Return true if a job "n" has finished
|
java.lang.String |
obtainReportFilePath()
Return the Report File Path
|
void |
reanudeProcess()
To invoque previously stopProcess.
|
void |
setExperimenttype(int tipo)
This method set type problem, classification or regression
|
void |
setpartitionType(int tipo)
This methos set type partitions, k-fold or 5x2
PK = 0 P5X2 = 1;
|
void |
stopProcess()
This method is used for stop the experiment.
|
public EducationalRunKeelTxt(int experimentType)
experimentType
- Experiment type (CLASSIFICATION = 0, REGRESSION = 1 or UNSUPERVISED = 2).public void doIterate()
This method run a partition and creates the report when all partitions of the experiment are finished
public java.lang.String obtainReportFilePath()
Return the Report File Path
public java.lang.String calculatePartitionDatNameFile(int countPartitions)
Return the path for PartitionDat File Method to calculate name of partition (training or test) The config.txt file is inspected
countPartitions
- Counter for partitionspublic java.lang.String getActualNameExperiment()
Get the experiment that is running
public java.lang.String calculateActualSeed()
Method to calculate seed for actual partition The config.txt file is inspected
public void stopProcess()
This method is used for stop the experiment. Not Kill the experiment and the partitions, "suspend" the experiment
public void killProcess()
This method is used for to kill the experiment. Kill the experiment and the partitions.
public void reanudeProcess()
To invoque previously stopProcess. Reanude the experiment in the partition i
public boolean isFinished()
This method return the state of the experiment. True, all partitions finished False, partitions not finished
public boolean isInterrumpted()
This methos return if a partition is interrupted for the extern user True, interrupted False, no interrupted
public boolean getexecExternoFinalizado()
This method return a control variable used for GUI EjecucionDocente. It controls the conclusion of the extern process True if method doIterate() han finished
public int getNParticion()
This method return number of th actual partition
public int getNRealPartition()
Get number partition of a experiment (not global partition)
public double getPartitionTime()
This method return the compute time for a partition
public int getTotalPartitions()
This methos return the partition total number
public int getExperimentType()
This methos get type problem, classification or regression
public java.lang.String getProblemType()
public int getPartitionType()
This methos get type partitions, k-fold or 5x2
public int getnJobs()
This method get number of jobs
public int getNumberofJobFinished()
Get the number of Jobs that is finished actually
public boolean nJobFinished()
Return true if a job "n" has finished
public java.util.List<Element> getActualJobSentences()
Return the Actual jobs Sentences
public void setExperimenttype(int tipo)
This method set type problem, classification or regression
tipo
- Type of Experimentpublic void setpartitionType(int tipo)
This methos set type partitions, k-fold or 5x2 PK = 0 P5X2 = 1;
tipo
- Tipe of partition