Code Monkey home page Code Monkey logo

leabra7's People

Contributors

cdgreenidge avatar noammiller avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

leabra7's Issues

Redo logging system

The current logging system is pretty slow, since we do some fancy SQL-style joining. It also has some bugs (for example, it reports 1x1 Tensors instead of floats for Layer unit-level attributes.)

To fix this, we need to consider two kinds of attributes: "whole" attributes, like layer.avg_act, and "part" attributes, like the net value of a layer's 3rd unit. This will allow us to get rid of the nasty joins.

Changes

ObservableMixin

Abstract attributes

  • A set of "whole" attributes

  • A set of "part" attributes

  • Abstract methods

    • observe_parts_attr(self, attr: str) -> Dict[str, List[Any]]. Should return a dict that looks like {"unit": [0, 1], "act": [0.3, 0.5]}.
  • Already implemented methods

    • observe_whole_attr(self, attr: str) -> Tuple[str, Any] (this is just a simple getattr)
    • validate_attr()

Logger

  • New method to record whole attributes
  • New method to record parts attributes
  • Method to transform to Logs

New stuff

  • A function to transform a list of whole observations (type Tuple[str, Any] into a dict).
  • Logs class. This is just a named tuple with two attributes: whole and parts. Each contains a data frame with the respective logs. We will return this from net.logs() instead of a single data frame.

Other stuff:

  • Clean up WholeObs and PartsObs comments
  • Reorder logs.py to make sense

Add theta oscillations

  • Need to add separate theta tough, peak, and plus cycle events to capture theta oscillation.
  • Need to be able to disable projections
  • Need to be able to define projections with learning defined for different phases

KetzMorkondaOReilly13.pdf

Fix logging data format

Right now, we encode the "unit" number in the dataframe column title. This is annoying and should be fixed.

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.