|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.base.node.mine.bfn.BasisFunctionPredictorRow
public abstract class BasisFunctionPredictorRow
Class presents a predictor row for basisfunctions providing method to apply unknown data (compose).
Constructor Summary | |
---|---|
|
BasisFunctionPredictorRow(ModelContentRO pp)
Creates new predictor row on model content. |
protected |
BasisFunctionPredictorRow(RowKey key,
DataCell classLabel,
double dontKnowDegree)
Creates new predictor row. |
Method Summary | |
---|---|
abstract double |
compose(DataRow row,
double act)
Composes the activation of the given array and of the calculated one based on the given row. |
abstract double |
computeActivation(DataRow row)
Computes the activation based on the given row for this basisfunction. |
abstract double |
computeDistance(DataRow row)
|
abstract double |
computeSpread()
Returns a value for the spread of this rule. |
(package private) void |
cover(DataRow row,
DataCell classLabel)
If the same class as this basisfunction is assigned to, the number of correctly covered pattern is increased, otherwise the number of wrong covered ones. |
DataCell |
getClassLabel()
|
double |
getDontKnowClassDegree()
|
RowKey |
getId()
|
abstract int |
getNrUsedFeatures()
|
int |
getNumAllCoveredPattern()
Returns the number of covered input pattern. |
int |
getNumCorrectCoveredPattern()
Returns the number of correctly covered data pattern. |
int |
getNumWrongCoveredPattern()
Returns the number of wrong covered data pattern. |
double |
getVariance()
|
abstract double |
overlap(BasisFunctionPredictorRow bf,
boolean symmetric)
Computes the overlapping of two basis functions. |
static double |
overlapping(double minA,
double maxA,
double minB,
double maxB,
boolean symmetric)
Computes the overlapping based on two lines. |
(package private) void |
resetCoveredPattern()
Resets all covered pattern. |
void |
save(ModelContentWO pp)
Saves this row into a model content. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected BasisFunctionPredictorRow(RowKey key, DataCell classLabel, double dontKnowDegree)
key
- the key of this rowclassLabel
- class label of the target attributedontKnowDegree
- don't know probabilitypublic BasisFunctionPredictorRow(ModelContentRO pp) throws InvalidSettingsException
pp
- the model content to read the new predictor row from
InvalidSettingsException
- if the model content is invalidMethod Detail |
---|
public abstract double computeDistance(DataRow row)
row
- to compute distance with
public abstract double computeSpread()
public abstract double overlap(BasisFunctionPredictorRow bf, boolean symmetric)
symmetric
- if the result is proportional to both basis functions,
and thus symmetric, or if it is proportional to the area of
the basisfunction on which the function is called.bf
- the other basisfunction to compute overlapping with
public static final double overlapping(double minA, double maxA, double minB, double maxB, boolean symmetric)
minA
- left point line AmaxA
- right point line AminB
- left point line BmaxB
- right point line Bsymmetric
- if the result is proportional to both basis functions,
and thus symmetric, or if it is proportional to the area of the
basis function on which the function is called
final void cover(DataRow row, DataCell classLabel)
row
- to coverclassLabel
- a pattern of the given class has to be coveredpublic final double getVariance()
public abstract double computeActivation(DataRow row)
row
- compute activation for
public abstract double compose(DataRow row, double act)
0
and 1
.
row
- combine activation with this patternact
- activation to combine with
public abstract int getNrUsedFeatures()
public final double getDontKnowClassDegree()
public final DataCell getClassLabel()
public final int getNumAllCoveredPattern()
public final int getNumCorrectCoveredPattern()
public final int getNumWrongCoveredPattern()
final void resetCoveredPattern()
public final RowKey getId()
public void save(ModelContentWO pp)
pp
- the model content to save this row topublic String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |