GithubHelp home page GithubHelp logo

automata's People

Contributors

jrainj avatar kegsay avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

automata's Issues

Swap to slices over maps where possible

Running a cpu profile on the tests shows:

(pprof) top5
Showing nodes accounting for 8020ms, 65.63% of 12220ms total
Dropped 38 nodes (cum <= 61.10ms)
Showing top 5 nodes out of 39
      flat  flat%   sum%        cum   cum%
    2790ms 22.83% 22.83%     2950ms 24.14%  runtime.mapiternext /usr/local/go/src/runtime/hashmap.go
    2000ms 16.37% 39.20%     2360ms 19.31%  runtime.mapaccess1_fast64 /usr/local/go/src/runtime/hashmap_fast.go
    1320ms 10.80% 50.00%     1770ms 14.48%  runtime.mapassign_fast64 /usr/local/go/src/runtime/hashmap_fast.go
    1100ms  9.00% 59.00%     7540ms 61.70%  github.com/kegsay/automata.(*Neuron).Activate /home/kegsay/go/src/github.com/kegsay/automata/neuron.go
     810ms  6.63% 65.63%      810ms  6.63%  runtime.aeshash64 /usr/local/go/src/runtime/asm_amd64.s

It's telling that map accesses are the top 3, all that hashing... Array accesses would be better.

One way of doing this would be to use the ID types as offsets into a slice. This will require a bit of a rework.

Implement LSTM

This is the whole point of developing this library as it is the creme de la creme of the paper.

Implement .dot support

It'd be nice to port a Network to a .dot file which can then be visualised using dot.

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.