#include <GroupSetWinnow.h>
Inheritance diagram for GroupSetWinnow:

Public Member Functions | |
| virtual long double | GetInput (const Example &x, long long int inp) |
| Get an example's input to an input of Winnow. | |
| GroupSetWinnow (GroupSet *grpst, Example *trainexs=NULL, long numex=0, unsigned dmode=HALFHAUSDORFF, unsigned storemd=STOREWEIGHTS|STOREERRORS) | |
| ~GroupSetWinnow () | |
| long double | Sum (const Example &x, long exindex) |
| Compute the weighted sum for an example if it is used to build the group set. | |
| long double | Sum (const Example &x) |
| Compute the weighted sum for an example. | |
| void | SetUnitGroup () |
| Set IsUnitGroup as true. | |
| void | PreCompExInputs (Example &x) |
| Pre-compute the inputs of an example. | |
Protected Member Functions | |
| virtual long double | GetInputConstant (long long int inp) |
| Return the number of boxes for a group. | |
Protected Attributes | |
| GroupSet * | grpset |
| a group set | |
| unsigned | distmode |
| the distance mode: Full-Hausdorff or Half-Hausdorff | |
| unsigned | IsExInBuildingPtSet |
| A indicator for current example. | |
| long | curExIndex |
| the index of current input example | |
| long long int | lastInputIndex |
| the input index called by GetInput() last time. | |
| long double | lastContain |
| 0 or 1 if the last group contains the example, | |
| bool | IsUnitGroup |
| if the number of boxes is not considered | |
Full-Hausdorff: the number of inputs = 2*# of Groups. Half-Hausdorff: the number of inputs = # of Groups.
|
||||||||||||||||||||||||
|
|
|
|
|
|
||||||||||||
|
Get an example's input to an input of Winnow. For Full-Hausdorff, check lastinput. If they are in the same pair, ~lastcontain. If IsExInBuildingPtSet == 1, check if the example is in the point set of the group. Otherwise, check if minimum bounding box built by each point in the example and the group is valid. Implements Neuron< Example >. |
|
|
Return the number of boxes for a group.
Reimplemented from Neuron< Example >. |
|
|
Pre-compute the inputs of an example. The result will be stored at x.inputs as a bitstring.
|
|
|
Set IsUnitGroup as true.
|
|
|
Compute the weighted sum for an example.
Reimplemented from Neuron< Example >. |
|
||||||||||||
|
Compute the weighted sum for an example if it is used to build the group set. Will set IsExInBuildingPtSet to 1 first, then set it back to 0.
|
|
|
the index of current input example
|
|
|
the distance mode: Full-Hausdorff or Half-Hausdorff
|
|
|
a group set
|
|
|
A indicator for current example. 1: the example is in the point set used to build the group set. Otherwise 0. |
|
|
if the number of boxes is not considered
|
|
|
0 or 1 if the last group contains the example,
|
|
|
the input index called by GetInput() last time. if Full-Hausdorff, a paire of inputs only need to be computed once. if -1, never been used. |
1.3-rc3