Beispiel #1
0
        public override void Compute()
        {
            TLArtifactsCollection source = (TLArtifactsCollection)Workspace.Load("SourceArtifacts");
            TLArtifactsCollection target = (TLArtifactsCollection)Workspace.Load("TargetArtifacts");
            REngine        engine        = new REngine(_config.RScriptPath);
            GibbsLDAConfig config        = (GibbsLDAConfig)engine.Execute(new GibbsLDA_GAScript(source, target, _config));

            Workspace.Store("GibbsLDAConfig", config);
        }
        public override void Compute()
        {
            TLArtifactsCollection source = (TLArtifactsCollection)Workspace.Load("SourceArtifacts");
            TLArtifactsCollection target = (TLArtifactsCollection)Workspace.Load("TargetArtifacts");
            GibbsLDAConfig        config = (GibbsLDAConfig)Workspace.Load("Config");
            REngine            engine    = new REngine(config.RScriptPath);
            TLSimilarityMatrix sims      = (TLSimilarityMatrix)engine.Execute(new GibbsLDAScript(source, target, config));

            Workspace.Store("Similarities", sims);
        }
 public GibbsLDAComponent(ComponentLogger log)
     : base(log)
 {
     _config       = new GibbsLDAConfig();
     Configuration = _config;
 }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="source">Source artifacts</param>
 /// <param name="target">Target artifacts</param>
 /// <param name="config">Configuration object</param>
 public GibbsLDAScript(TLArtifactsCollection source, TLArtifactsCollection target, GibbsLDAConfig config) : base()
 {
     _source = source;
     _target = target;
     _config = config;
 }