Biorithm
1.1
|
A subclass of MyOneVersusNoneGainAlgo that implements a guilt-by-association algorithm that does not use negative examples. See. More...
#include <gain-algorithm.h>
Public Member Functions | |
MyOneVersusNoneLocalGainAlgo (MyGainGraph &g, MyAnnotations &a, MyGainParams &p, Reporter &r, GeneOntology *go=NULL) | |
virtual MyGainTriState | computeState (MyNode &node) |
virtual string | getName () |
virtual void | run (const MyNodeIdList &nodesToAnnotate) |
Run the algorithm by looping over all the nodes in nodesToAnnotate once. |
A subclass of MyOneVersusNoneGainAlgo that implements a guilt-by-association algorithm that does not use negative examples. See.
This algorithm computes node states that are either HYPOTHETICAL_STATE or ANNOTATED_STATE. The confidence that a particular node should be annotated with a function is simply the total weight of the edges connecting that nodes to its neighbours that are annotated with that function.
MyGainTriState MyOneVersusNoneLocalGainAlgo::computeState | ( | MyNode & | node | ) | [virtual] |
This method should be a member of this class since the method needs access to the states of the nodes (stored in subclasses of the class).
Reimplemented from MyOneVersusAllGainAlgo.
virtual string MyOneVersusNoneLocalGainAlgo::getName | ( | ) | [inline, virtual] |
Return the name of the algorithm.
Reimplemented from MyOneVersusNoneGainAlgo.