/// <summary> /// Computes the recall of the given similarity matrix using the answer matrix provided. /// </summary> protected override void ComputeImplementation() { _oracle.Threshold = 0; int correct = 0; foreach (TLSingleLink link in _matrix.AllLinks) { if (_oracle.IsLinkAboveThreshold(link.SourceArtifactId, link.TargetArtifactId)) { correct++; } } Results = new TraceLabSDK.SerializableDictionary <string, double>(); Results.Add("Recall", correct / (double)_oracle.Count); }
/// <summary> /// Computes the recall of the given similarity matrix using the answer matrix provided. /// </summary> protected override void ComputeImplementation() { _oracle.Threshold = 0; int correct = 0; foreach (TLSingleLink link in _matrix.AllLinks) { if (_oracle.IsLinkAboveThreshold(link.SourceArtifactId, link.TargetArtifactId)) { correct++; } } Results = new TraceLabSDK.SerializableDictionary<string,double>(); Results.Add("Recall", correct / (double)_oracle.Count); }