Beispiel #1
0
 public Matrix(int numberOfRows, int numberOfColumns, string id = "")
 {
     Rows    = numberOfRows;
     Columns = numberOfColumns;
     W       = Tembo.ArrayOfZeros(Rows * numberOfColumns);
     DW      = Tembo.ArrayOfZeros(Rows * numberOfColumns);
     Id      = id != "" ? id : Tembo.GetId();
 }
Beispiel #2
0
        public int Direction(double[] state)
        {
            var sta = new State
            {
                Values     = state,
                Occurrence = 1,
                Output     = -1
            };

            lastKey = Tembo.GetId();
            Historical.Add(lastKey, sta);
            lastAction = dqnAgent.Act(state);
            return(lastAction);
        }