#include "stdafx.h"
Go to the source code of this file.
Enumerator |
---|
zeroOne |
|
balancedError |
|
fScore |
|
Definition at line 95 of file circles.h.
Inner product for sparse features.
Definition at line 349 of file circles.h.
352 res += it.GetDat() * Parameter[it.GetKey()];
bool IsEnd() const
Tests whether the iterator is pointing to the past-end element.
Compute the loss between a GroundTruth cluster l and a predicted cluster lHat.
Definition at line 103 of file circles.h.
106 if (lHat.
Len() == 0) {
111 if (lHat.
Len() == 0) {
117 TInt TruePositives = 0;
118 TInt FalsePositives = 0;
119 TInt FalseNegatives = 0;
124 if (!lHat.
IsKey(c)) {
131 LabelLoss += 0.5/l.
Len();
145 LabelLoss += 0.5/(N - l.
Len());
153 if ((lHat.
Len() == 0 || TruePositives == 0) && Which ==
fScore) {
156 TFlt precision = (1.0*TruePositives)/lHat.
Len();
157 TFlt recall = (1.0*TruePositives)/l.
Len();
159 return 1 - 2 * (precision*recall) / (precision + recall);
bool IsKey(const TKey &Key) const