コード例 #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="QNetwork"/> class.
        /// </summary>
        /// <param name="path">The path.</param>
        public QNetwork(string path)
        {
            Parameters = new QNetworkParameters();
            FileInfo networkFile = new FileInfo(path);

            NeuralNetwork = (BasicNetwork)(Encog.Persist.EncogDirectoryPersistence.LoadObject(networkFile));
        }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DeepRLAgentParameters"/> class.
 /// </summary>
 public DeepRLAgentParameters()
 {
     eGreedyProbability = 0.1;
     InOutStrategy      = 0.33;
     MiniBatchSize      = 50;
     DiscountFactor     = 0.8;
     LearningRate       = 0.3;
     MemoryReplaySize   = 500;
     QNetwork           = new QNetworkParameters();
     Decisions          = new List <OnDayComplete>();
 }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="QNetwork"/> class.
 /// </summary>
 public QNetwork(Action <QNetworkParameters> initializer = null)
 {
     Parameters = new QNetworkParameters();
     initializer?.Invoke(Parameters);
     InitializeNetwork();
 }