18 using System.Collections.Generic;
21 using TraceLab.Components.DevelopmentKit.Metrics;
22 using TraceLab.Components.DevelopmentKit.Metrics.FeatureLocation;
23 using TraceLab.Components.Library.Metrics.Controller;
25 using TraceLabSDK.Types;
26 using TraceLabSDK.Types.Contests;
28 namespace TraceLab.Components.Library.Metrics.FeatureLocation
30 [Component(Name =
"Feature Location Metrics",
31 Description =
"Computes various feature location metrics on a similarity matrix.",
32 Author =
"SEMERU; Evan Moritz",
35 [IOSpec(IOSpecType.Input,
"CandidateMatrix", typeof(TLSimilarityMatrix))]
36 [IOSpec(IOSpecType.Input,
"AnswerMatrix", typeof(TLSimilarityMatrix))]
37 [Tag(
"Metrics.FeatureLocation")]
46 Configuration = _config;
51 Logger.Trace(
"Starting metrics computation: " + _config.TechniqueName);
52 TLSimilarityMatrix matrix = (TLSimilarityMatrix)Workspace.Load(
"CandidateMatrix");
53 TLSimilarityMatrix oracle = (TLSimilarityMatrix)Workspace.Load(
"AnswerMatrix");
54 TLExperimentResults exResults =
new TLExperimentResults(_config.TechniqueName);
55 #region Effectiveness Best Measure
56 if (_config.EffectivenessBestMeasure)
58 Logger.Trace(
"Computing effectiveness best measure...");
65 Logger.Trace(
"Skipped effectiveness best measure computation.");
68 #region Effectiveness All Measure
69 if (_config.EffectivenessAllMeasure)
71 Logger.Trace(
"Computing effectiveness all measure...");
78 Logger.Trace(
"Skipped effectiveness all measure computation.");