|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.knime.base.node.mine.bfn.BasisFunctionLearnerRow
org.knime.base.node.mine.bfn.radial.RadialBasisFunctionLearnerRow
public class RadialBasisFunctionLearnerRow
This class extends the general
BasisFunctionLearnerRow in order to
use radial basis function prototypes for training. This prototype keeps an
Gaussian functions is internal representation. This function is created
infinity which means cover the entry domain. During training the function is
shrunk if new conflicting instances are omitted. Therefore two parameters
have been introduced. One is m_thetaMinus which is used to
describe an upper bound of conflicting instances; and
m_thetaPlus, to lower bound for non-conflicting instances.
| Constructor Summary | |
|---|---|
protected |
RadialBasisFunctionLearnerRow(RowKey key,
DataCell classInfo,
DataRow center,
double thetaMinus,
double thetaPlus,
int distance)
Creates a new radial basisfunction using the center vector as the anchor of the Gaussian function and also assigns class label for this prototype. |
| Method Summary | |
|---|---|
boolean |
compareCoverage(BasisFunctionLearnerRow best,
DataRow row)
Compares this basis function with the other one by its standard deviation if the number of covered pattern is equal otherwise use this identification. |
double |
computeActivation(DataRow row)
Computes activation for a given row using this basis function. |
void |
cover(DataRow row)
Method is empty. |
boolean |
covers(DataRow row)
Checks if the given row is covered by this basis function. |
boolean |
explains(DataRow row)
Checks if the given row is explained by this basisfunction. |
DataCell |
getFinalCell(int index)
Returns a basis function cell for the given index. |
DoubleValue |
getMissingValue(int col)
Returns the missing double value for the given dimension. |
RadialBasisFunctionPredictorRow |
getPredictorRow()
|
boolean |
getShrinkValue(DataRow row)
Called if a new BasisFunctionLearnerRow has to be adjusted. |
double |
getThetaMinus()
|
double |
getThetaPlus()
|
void |
reset()
Method is empty. |
boolean |
shrink(DataRow row)
Basis functions need to be adjusted if they conflict with other ones. |
String |
toString()
Returns a string summary of this basis function cell including the assigned class, number of covered, as well as explained pattern. |
| Methods inherited from class org.knime.base.node.mine.bfn.BasisFunctionLearnerRow |
|---|
addCovered, computeCoverage, equals, getAllCoveredPattern, getAnchor, getCell, getClassLabel, getKey, getNumCells, getVariance, hashCode, iterator, print |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected RadialBasisFunctionLearnerRow(RowKey key,
DataCell classInfo,
DataRow center,
double thetaMinus,
double thetaPlus,
int distance)
key - the key of this rowclassInfo - the class info assigned to this basisfunctioncenter - the initial center vectorthetaMinus - upper bound for conflicting instancesthetaPlus - lower bound for non-conflicting instancesdistance - choice of the distance function between patterns.| Method Detail |
|---|
public RadialBasisFunctionPredictorRow getPredictorRow()
getPredictorRow in class BasisFunctionLearnerRowpublic DoubleValue getMissingValue(int col)
getMissingValue in class BasisFunctionLearnerRowcol - the column index.
public final boolean covers(DataRow row)
covers in class BasisFunctionLearnerRowrow - the input row to check coverage for
true if the given row is covered other
false
NullPointerException - if the given row is nullcomputeActivation(DataRow)public final boolean explains(DataRow row)
explains in class BasisFunctionLearnerRowrow - the input row to check coverage for
true if the given row is explained other
false
NullPointerException - if the given row is nullcomputeActivation(DataRow)
public final boolean compareCoverage(BasisFunctionLearnerRow best,
DataRow row)
compareCoverage in class BasisFunctionLearnerRowbest - the basisfunction with the highest coverage so farrow - the row on which to coverage need to be compared
true if the coverage of this object
is better than the of the other
ClassCastException - if the other cell is not a
RadialBasisFunctionLearnerRowpublic final boolean getShrinkValue(DataRow row)
BasisFunctionLearnerRow has to be adjusted.
getShrinkValue in class BasisFunctionLearnerRowrow - conflicting pattern.
public final boolean shrink(DataRow row)
m_thetaMinus.
shrink in class BasisFunctionLearnerRowrow - the input row to shrink this basisfunction on
true if the standard deviation changed due to the
method which happens when either this basisfunction has not be
shrunk before or the new radius is smaller than the old one,
other wise this function return falsepublic final void reset()
reset in class BasisFunctionLearnerRowpublic final void cover(DataRow row)
cover in class BasisFunctionLearnerRowrow - Ignored.public String toString()
toString in class BasisFunctionLearnerRowpublic DataCell getFinalCell(int index)
getFinalCell in class BasisFunctionLearnerRowindex - cell for index
public double computeActivation(DataRow row)
computeActivation in class BasisFunctionLearnerRowrow - the data row to compute activation with
public final double getThetaMinus()
public final double getThetaPlus()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||