Home | Trees | Indices | Help |
|
---|
|
object --+ | list --+ | Prediction
Class for predictions from predictors.
A Prediction instance hold multiple Suggestion instances. It is a list of Suggestion instances and the list is kept ordered according to the suggestions probabilities. Every predictors should return a Preidiction instance.
![]() |
Class Hierarchy for Prediction |
|
|||
new empty list |
|
||
|
|||
|
|||
Inherited from Inherited from |
|
|||
Inherited from |
|
|||
Inherited from |
|
Prediction creator.
|
Override the == operator in order to compare instances. Two Prediction instances are equal if they contain the same items (thus, have the same length).
|
Add a suggestion in the Prediction list. The suggestion is added at the correct index so that the Prediction list remains ordered. Note: Using insert() and a while loop seams a little faster than using sorted(). Also, using insort from the bisect module seems to produce similar benchmarks. |
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Jul 14 21:07:50 2015 | http://epydoc.sourceforge.net |