|
||||||||||
| 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.fuzzy.FuzzyBasisFunctionLearnerRow
public class FuzzyBasisFunctionLearnerRow
Extends the general BasisFunctionLearnerRow object to act as
rectangular fuzzy prototype. Each feature value holds a fuzzy membership
function (trapezoid membership function so far) with a assigned anchor
retrieved from the input row which commit this rule.
| Constructor Summary | |
|---|---|
protected |
FuzzyBasisFunctionLearnerRow(RowKey key,
DataCell classInfo,
DataRow centroid,
int norm,
int shrink,
MutableDouble[] min,
MutableDouble[] max)
Creates a new learner row for fuzzy rules. |
| Method Summary | |
|---|---|
boolean |
compareCoverage(BasisFunctionLearnerRow o,
DataRow r)
Compares this basisfunction with the another one by the fuzzy rule's number of covered pattern. |
double |
computeActivation(DataRow row)
Computes activation for a given row using this basis function. |
double |
computeSpread()
Returns the aggregated spread of the core. |
void |
cover(DataRow row)
This basis function covers the given row. |
boolean |
covers(DataRow row)
Returns true if the given row is covered by this prototype, that is, if computeActivation(DataRow) returns a degree greater than
MINACT. |
boolean |
explains(DataRow row)
Returns true if the given row is covered by this
prototype, that is, if computeActivation(DataRow) returns a
degree equal 1. |
DataCell |
getFinalCell(int index)
Returns a basis function cell for the given index. |
DoubleValue |
getMissingValue(int col)
|
FuzzyBasisFunctionPredictorRow |
getPredictorRow()
|
int |
getShrink()
|
boolean |
getShrinkValue(DataRow row)
Called if a new BasisFunctionLearnerRow has to be adjusted. |
void |
reset()
Resets core value of all dimensions to the initial anchor value. |
boolean |
shrink(DataRow row)
If a new prototype has to be adjusted. |
String |
toString()
Returns a string representation of this basis function. |
String |
toStringARFF()
Returns a ARFF string-like summary of this fuzzy bf. |
| 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 FuzzyBasisFunctionLearnerRow(RowKey key,
DataCell classInfo,
DataRow centroid,
int norm,
int shrink,
MutableDouble[] min,
MutableDouble[] max)
key - the key for the row.classInfo - the class label.centroid - the initial center row which forms the anchor of this
fuzzy rule.norm - A fuzzy norm function.shrink - A function to shrink rules.min - An array if minimum bounds, for each input dimension.max - An array if maximum bounds, for each input dimension.| Method Detail |
|---|
public FuzzyBasisFunctionPredictorRow getPredictorRow()
getPredictorRow in class BasisFunctionLearnerRowpublic DoubleValue getMissingValue(int col)
getMissingValue in class BasisFunctionLearnerRowcol - the column index
public boolean covers(DataRow row)
computeActivation(DataRow) returns a degree greater than
MINACT.
covers in class BasisFunctionLearnerRowrow - the data row to check coverage for
true if the row is coveredcomputeActivation(DataRow)public boolean explains(DataRow row)
true if the given row is covered by this
prototype, that is, if computeActivation(DataRow) returns a
degree equal 1.
explains in class BasisFunctionLearnerRowrow - the data row to check coverage for
true if the row is explainedcomputeActivation(DataRow)public final boolean getShrinkValue(DataRow row)
BasisFunctionLearnerRow has to be adjusted.
getShrinkValue in class BasisFunctionLearnerRowrow - conflicting pattern
public final boolean shrink(DataRow row)
shrink in class BasisFunctionLearnerRowrow - the input pattern for shrinking
true if a dimension was effect by this operationpublic void reset()
reset in class BasisFunctionLearnerRowpublic void cover(DataRow row)
cover in class BasisFunctionLearnerRowrow - the row to cover
public boolean compareCoverage(BasisFunctionLearnerRow o,
DataRow r)
compareCoverage in class BasisFunctionLearnerRowo - the other basisfunction to compare withr - the row to compute activation on
true if the number covered pattern of
this object is greater
NullPointerException - if one of the args in nullpublic double computeSpread()
public String toString()
toString() before adding this fuzzy bfs membership
functions.
toString in class BasisFunctionLearnerRowpublic String toStringARFF()
public 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 int getShrink()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||