public abstract class Selection
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected ContextReasoning |
filter
Object used to filter cases according to some particular attributes.
|
protected java.lang.String |
parameters
Has the parameters specified in the config file
(Only used if the implemented method needs extra-parameters).
|
Constructor and Description |
---|
Selection() |
Modifier and Type | Method and Description |
---|---|
void |
addParameters(java.lang.String s)
Stores the parameters of the configuration file
|
java.lang.String |
getParameters()
Returns paraemters.
|
abstract SeleccioIndividus |
select(MatriuDistancies matrix,
Population train,
Population test,
java.lang.String classe)
Abstract methods of Selection.
|
void |
setFiltering(ContextReasoning f)
Sets the filtering method for selection
|
protected java.lang.String parameters
protected ContextReasoning filter
public abstract SeleccioIndividus select(MatriuDistancies matrix, Population train, Population test, java.lang.String classe)
matrix
- Float[][] with global distances.test
- Population with test cases.train
- Population with train cases.classe
- String that indicates the attribute over which is being build
the model.public void addParameters(java.lang.String s)
s
- String amb els parameterspublic java.lang.String getParameters()
public void setFiltering(ContextReasoning f)
f
- ContextReasoning filtering method