public override void Compute()
 {
     string TraceID = (string)Workspace.Load("TraceID");
     PDG pdg = (PDG)Workspace.Load("PDG");
     REngine engine = new REngine(_config.RScriptPath.Absolute);
     RScript script = new PageRankScript(TraceID, pdg, _config);
     TLSimilarityMatrix ranks = (TLSimilarityMatrix)engine.Execute(script);
     Workspace.Store("Ranks", ranks);
 }
Beispiel #2
0
 public void BinaryTest()
 {
     string rankFile = traceRoot + ".PageRank.binary.ranks.Beta85";
     TLSimilarityMatrix oracle = WebMiningTestUtils.GenerateOracle(rankFile, mapFile);
     PDG pdg = WebMiningTestUtils.GeneratePDG(traceFile, rawMethods);
     Console.WriteLine("Executing script...");
     REngine engine = new REngine(Settings.Default.RScriptEXE);
     RScript script = new PageRankScript("trace", pdg,
         new PageRankConfig
         {
             Epsilon = epsilon,
             Beta = beta,
             Weight = WebMiningWeightEnum.Binary,
         }
     );
     TLSimilarityMatrix results = (TLSimilarityMatrix)engine.Execute(script);
     WebMiningTestUtils.CompareResults(oracle, results, rawMethods);
 }