public override void Compute() { List <CSMR13DataSet> ListOfDatasets = (List <CSMR13DataSet>)Workspace.Load("ListOfDatasets"); CSMR13DataSet CurrentDataset = ListOfDatasets[(int)Workspace.Load("CurrentDataset")]; // import artifacts string[] sourceInfo = CurrentDataset.SourceArtifacts.Split(new char[] { '#' }); string[] targetInfo = CurrentDataset.TargetArtifacts.Split(new char[] { '#' }); Workspace.Store("SourceArtifacts", Artifacts.ImportDirectory(sourceInfo[0], sourceInfo[1])); Workspace.Store("TargetArtifacts", Artifacts.ImportDirectory(targetInfo[0], targetInfo[1])); // import oracle Workspace.Store("Oracle", Oracle.Import(CurrentDataset.Oracle)); // import relationships Workspace.Store("Relationships", Oracle.Import(CurrentDataset.Relationships)); // import stopwords Workspace.Store("Stopwords", Stopwords.Import(CurrentDataset.Stopwords)); }
public override void Compute() { int curr = ((int)Workspace.Load("CurrentDataset")) - 1; List <ICSM11DataSet> list = (List <ICSM11DataSet>)Workspace.Load("ListOfDatasets"); ICSM11DataSet dataset = list[curr]; string[] sourceInfo = dataset.SourceArtifacts.Split(new char[] { '#' }); string[] targetInfo = dataset.TargetArtifacts.Split(new char[] { '#' }); TLArtifactsCollection targetArtifacts = Artifacts.ImportDirectory(targetInfo[0], targetInfo[1]); TLArtifactsCollection sourceArtifacts = Artifacts.ImportDirectory(sourceInfo[0], sourceInfo[1]); Workspace.Store("SourceArtifacts", sourceArtifacts); Workspace.Store("TargetArtifacts", targetArtifacts); TLSimilarityMatrix answer = Oracle.Import(dataset.Oracle); Workspace.Store("Oracle", answer); Workspace.Store("RTM_NumTopics", list[curr].RTM.NumTopics); Workspace.Store("RTM_Alpha", list[curr].RTM.Alpha); Workspace.Store("RTM_Beta", list[curr].RTM.Beta); Workspace.Store("RTM_Eta", list[curr].RTM.Eta); Workspace.Store("VSM_JS_lambda", list[curr].PCA.VSM_JS); Workspace.Store("VSM_RTM_lambda", list[curr].PCA.VSM_RTM); Workspace.Store("JS_RTM_lambda", list[curr].PCA.JS_RTM); }
public override void Compute() { Workspace.Store("Artifacts", Artifacts.ImportDirectory(_config.Directory.Absolute, _config.Filter)); }