Giter Club home page Giter Club logo

brain's Introduction

Brain

Package BRAIN - lisp (JSCL) wrap for brain.js library.

It is intended for use in the Moren environment.

Status

Development

Compilation

   (lores:qload :brain :storejs t)
   (lores:modlink :brain "brain.js")

Use

  (setq *nn (brain:make-neural-net
              (brain:nno :hiddensizes #(6 3)
                         :callback (lambda (stats) (print (klib:jso-to-list stats)))
                         :callbackperiod 100)))
   (brain:train *nn
       (brain:train-data
                (brain:tp (mkjso "r" 0.3 "g" 0.7) (mkjso "black" 1))
                (brain:tp (mkjso "r" 0.16 "b" 0.2) (mkjso "white" 1))
                (brain:tp (mkjso "r" 0.5 "g" 0.5 "b" 1.0) (mkjso "white" 1)))
       (brain:nno :iterations 100000 :errorthres 0.005))

 (print (klib:jso-to-list (brain:run *nn (mkjso "r" 0 "g" 0.00 "b" 0.0))))
 =>
   ((black 0.1877265584251551) (white 0.8651886428321726))

Copyright

Copyright © 2017 Vladimir Mezentsev

License

GNU General Public License v3.0

brain's People

Contributors

vlad-km avatar

Stargazers

 avatar  avatar

Watchers

 avatar

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.