コード例 #1
0
        /// <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);
        }
コード例 #2
0
 /// <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);
 }