Code Monkey home page Code Monkey logo

predictiveknowledge's People

Contributors

dquail avatar

Watchers

 avatar  avatar  avatar

Forkers

kongaloosh

predictiveknowledge's Issues

Add bias bit

As per Rich and Mark - Add a bias bit to the representation.

It looks like GTD does not produce a RUPEE estimate, or a return error, or UDE.

def gtdLearn(self, lastState, action, newState):
        pred = self.prediction(lastState)
        zNext = self.cumulant(newState)
        gammaNext = self.gamma(newState)
        lam = self.lam(newState)
        rho = self.rho(action, lastState)
        self.eligibilityTrace = rho * (self.gammaLast * lam * self.eligibilityTrace + lastState)
        newStateValue = 0.0
        if not newState  is None:
            newStateValue = np.inner(newState, self.weights)
        tdError = zNext + gammaNext * newStateValue - np.inner(lastState, self.weights)
        updateH = self.alphaH * (tdError * self.eligibilityTrace - (np.inner(self.hWeights, lastState)) * lastState)
        self.hWeights = self.hWeights + updateH
        self.i = self.i + 1

        upWeights = self.alpha * (tdError * self.eligibilityTrace - gammaNext * (1-lam)  * (np.inner(self.eligibilityTrace, self.hWeights) * newState))
        if (zNext >0):
            t = 0
            for w in upWeights:
                if w>0:
                    t = t + 1
        self.weights = self.weights + upWeights
        pred = self.prediction(lastState)
        self.gammaLast = gammaNext

Add game video output to display

Currently only the voronoi diagram is shown in the display. It would be good if we also displayed the actual game video along side it.

Ability to control the agent from the user interface

We need to be able to control the agent such that it can receive user instructions:

  • pause
  • go (the behaviour policy takes over).
  • left
  • right
  • forward
  • touch
    Also it would be ideal to select an option that would allow the agent to take actions and not display the results (as this takes a significant amount of processing).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.