public class BaseR
extends java.lang.Object
Title: BaseR
Description: Contains the definition of the rule base
Copyright: Copyright (c) 2009
Company: KEEL
Constructor and Description |
---|
BaseR()
Default constructor
|
BaseR(BaseD dataBase,
myDataset train,
int ruleWeight,
int infType,
int compType)
Rule Base Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
borrar()
It removes those rules from the RB whose rule weight (confidence) is lower than 0
|
BaseR |
clone()
It creates a copy of the current rule base
|
void |
eliminaRegla(int pos)
It removes a given rule from the rule set
|
void |
escribeFichero(java.lang.String filename)
It prints the rule base into a File
|
int |
FRM(double[] example)
Fuzzy Reasoning Method
|
void |
Generacion()
It generates the initial set of rules from each data partition space from 2 to L (number of labels)
|
void |
learnWeights(double nu,
int epochs)
This function adjust the certainty degree for the rules
|
java.lang.String |
printString()
It prints the rule base into an string
|
int |
size()
It returns the number of rules
|
public BaseR()
public BaseR(BaseD dataBase, myDataset train, int ruleWeight, int infType, int compType)
dataBase
- DataBase the Data Base containing the fuzzy partitionstrain
- myDataset the set of training examplesruleWeight
- int the rule weight heuristicinfType
- int the inference type for the FRMcompType
- int the compatibility type for the t-normpublic java.lang.String printString()
public void escribeFichero(java.lang.String filename)
filename
- String the name of the filepublic int FRM(double[] example)
example
- double[] the input examplepublic void Generacion()
public void learnWeights(double nu, int epochs)
nu
- double learning rateepochs
- int number of epochspublic void borrar()
public BaseR clone()
clone
in class java.lang.Object
public int size()
public void eliminaRegla(int pos)
pos
- the position or id of the rule