public class FlexibleHeuristic extends Object implements ExampleBasedHeuristic
Constructor and Description |
---|
FlexibleHeuristic() |
FlexibleHeuristic(int nrOfNegativeExamples,
double percentPerLengthUnit) |
Modifier and Type | Method and Description |
---|---|
int |
compare(ExampleBasedNode n1,
ExampleBasedNode n2) |
boolean |
equals(Object o) |
double |
getNodeScore(ExampleBasedNode n1) |
int |
getNrOfNegativeExamples() |
double |
getPercentPerLengthUnit() |
void |
init()
Method to be called after the component has been configured.
|
void |
setNrOfNegativeExamples(int nrOfNegativeExamples) |
void |
setPercentPerLengthUnit(double percentPerLengthUnit) |
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public FlexibleHeuristic(int nrOfNegativeExamples, double percentPerLengthUnit)
public FlexibleHeuristic()
public int getNrOfNegativeExamples()
public void setNrOfNegativeExamples(int nrOfNegativeExamples)
public double getPercentPerLengthUnit()
public void setPercentPerLengthUnit(double percentPerLengthUnit)
public int compare(ExampleBasedNode n1, ExampleBasedNode n2)
compare
in interface Comparator<ExampleBasedNode>
public boolean equals(Object o)
equals
in interface Comparator<ExampleBasedNode>
equals
in class Object
public void init() throws ComponentInitException
Component
init
in interface Component
ComponentInitException
- This exception is thrown if any
exceptions occur within the initialisation process of this
component. As component developer, you are encouraged to
re-throw occurring exception as ComponentInitException and
giving an error message as well as the actually exception by
using the constructor ComponentInitException(String, Throwable)
.public double getNodeScore(ExampleBasedNode n1)
getNodeScore
in interface Heuristic<ExampleBasedNode>
DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2019 Jens Lehmann