public class ErrorInfo
extends java.lang.Object
ErrorInfo
This class conatins the information about an error apperaed during the dataset read.Modifier and Type | Field and Description |
---|---|
int |
attDirection
It keeps if the attribute is an input, output or non-defined attribute
|
static int |
AttributeNotDefinedInTrain |
int |
attributeNum
It stores the attribute number where the error has appeared.
|
static int |
BadNumberOfValues
Definitions of possible ERRORS
|
static int |
BadNumericValue |
boolean |
errorInTrain
It stores if the error has been in the train dataset.
|
int |
fileLineNum
It stores the file number where the error has appeared.
|
static int |
InputsInTestNotEquals |
static int |
InputTestAttributeNotDefined |
static int |
InputTrainAttributeNotDefined |
int |
instanceNum
It stores the instance number where the error has appeared.
|
static int |
OutputMissingValue |
static int |
OutputsInTestNotEquals |
static int |
OutputTestAttributeNotDefined |
static int |
OutputTrainAttributeNotDefined |
static int |
TestNominalOutOfRange |
static int |
TestNumberOutOfRange |
static int |
TrainNominalOutOfRange |
static int |
TrainNumberOutOfRange |
static int |
TypeAlreadyFixed |
int |
typeOfError
It stores the type of the error
|
Constructor and Description |
---|
ErrorInfo()
Creates a new instance of ErrorInfo
|
ErrorInfo(int _type,
int _iNum,
int _lNum,
int _atNum,
int _atDir,
boolean _train,
java.lang.String _msg)
Creates a new instance with the parameters passed.
|
ErrorInfo(java.lang.String msg)
It creates a new Error info with the message passed
|
Modifier and Type | Method and Description |
---|---|
void |
print()
It does print an understable message about the error
|
public static final int BadNumberOfValues
public static final int OutputMissingValue
public static final int BadNumericValue
public static final int TrainNominalOutOfRange
public static final int TestNominalOutOfRange
public static final int TrainNumberOutOfRange
public static final int TestNumberOutOfRange
public static final int TypeAlreadyFixed
public static final int AttributeNotDefinedInTrain
public static final int InputTrainAttributeNotDefined
public static final int InputTestAttributeNotDefined
public static final int OutputTrainAttributeNotDefined
public static final int OutputTestAttributeNotDefined
public static final int InputsInTestNotEquals
public static final int OutputsInTestNotEquals
public int typeOfError
public int instanceNum
public int fileLineNum
public int attributeNum
public int attDirection
public boolean errorInTrain
public ErrorInfo()
public ErrorInfo(int _type, int _iNum, int _lNum, int _atNum, int _atDir, boolean _train, java.lang.String _msg)
public ErrorInfo(java.lang.String msg)
msg
- is the error message