AIXI.MC_AIXI_CTW.MC_AIXI_CTW C# (CSharp) Méthode

MC_AIXI_CTW() public méthode

public MC_AIXI_CTW ( AIXIEnvironment env, string>.Dictionary options ) : System
env AIXIEnvironment
options string>.Dictionary
Résultat System
        public MC_AIXI_CTW(AIXIEnvironment env, Dictionary<string, string> options)
            : base(env, options)
        {
            Int32.TryParse(options["ct-depth"], out this.Depth);

            //pick what implementation of CTW tree to use
            if (options.ContainsKey("ctw-model") && options["ctw-model"] == "ctf")
            {
                this.ContextTree = new CTWContextTreeFast(this.Depth);
            }
            else if (!options.ContainsKey("ctw-model") || options["ctw-model"] == "ct")
            {
                this.ContextTree = new CTWContextTree(this.Depth);
            }
            else {
                throw new ArgumentException("unknown ctw-model in options");
            }

            //this.context_tree = new CTWContextTree(this.depth);

            Int32.TryParse(options["agent-horizon"], out this.Horizon);

            Int32.TryParse(options["mc-simulations"], out this.McSimulations);

            this.Reset();
        }