Commits

William Dabney committed d675d68

Fixing two small old code issues.

  • Participants
  • Parent commits a1daa66
  • Branches package_refactor, proposed_refactor

Comments (0)

Files changed (2)

Agents/__init__.py

 from LSPI_SARSA import LSPI_SARSA
 from PolicyGradient import ActorCriticTT, REINFORCE, NAC_Sarsa, NaturalActorCritic
 from PolicyEvaluation import PolicyEvaluation
-from ClusterManager import ClusterManager
+#from ClusterManager import ClusterManager
 from FixedPolicyAgent import FixedPolicyAgent
 from Agent import Agent, MDPSolver

Representations/Tabular.py

         diff = inputs - self.ranges[:, 0]
         bs = (diff * self.bins_per_dim / width).astype("uint32")
         m = bs == self.bins_per_dim
-        bs[m] = self.bins_per_dim[m] - 1
+        bs[m] = self.bins_per_dim[m].astype("uint32") - 1
         return bs
 
     def hash_inputs(self, inputs):