public class ConceptMostCommonValue
extends java.lang.Object
This class computes the mean (numerical) or mode (nominal) value of the attributes with missing values for each class
Constructor and Description |
---|
ConceptMostCommonValue(java.lang.String fileParam)
Creates a new instance of MostCommonValue
|
Modifier and Type | Method and Description |
---|---|
double |
boundValueToAttributeLimits(double value,
Attribute a)
Takes a value and checks if it belongs to the attribute interval.
|
void |
process()
Process the training and test files provided in the parameters file to the constructor.
|
public ConceptMostCommonValue(java.lang.String fileParam)
fileParam
- The path to the configuration file with all the parameters in KEEL formatpublic double boundValueToAttributeLimits(double value, Attribute a)
Takes a value and checks if it belongs to the attribute interval. If not, it returns the nearest limit. IT DOES NOT CHECK IF THE ATTRIBUTE IS NOT NOMINAL
value
- the value to be checkeda
- the attribute to which the value will be checked againstpublic void process()
Process the training and test files provided in the parameters file to the constructor.