| Trees | Indices | Help |
|
|---|
|
|
object --+
|
DistanceMetric --+
|
FScoreMetric
Metrics that compute their distance by f-score share a lot of
processing. There's no need to put in every one the code for computing
f-score from matching stats. Instead, subclasses of this only need to
provide the fscore_match method.
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from Inherited from Inherited from |
|||
|
|||
OPTIONS = [ModuleOption('output', filter= choose_from_list(['f
|
|||
|
Inherited from |
|||
|
|||
|
Inherited from Inherited from |
|||
|
|||
Subclasses must provide this. It should return a tuple. The first three values must be floats: score given to the matching between the two inputs; max score that could be given to the first; max score for the second. There may be more values in the tuple. |
Compares the two semantics instances and returns a float distance between them.
|
We don't just sum up f-scores to get another f-score.
|
Format a distance value (as returned from distance or total_distance) as a string suitable for human-readable output.
|
|
|||
OPTIONS
|
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Mon Nov 26 16:04:56 2012 | http://epydoc.sourceforge.net |