n42, 面向nodejs的深度学习模块

分享于 

2分钟阅读

GitHub

  繁體 雙語
Deep learning module for nodejs
  • 源代码名称:n42
  • 源代码网址:http://www.github.com/Lewuathe/n42
  • n42源代码文档
  • n42源代码下载
  • Git URL:
    git://www.github.com/Lewuathe/n42.git
    Git Clone代码到本地:
    git clone http://www.github.com/Lewuathe/n42
    Subversion代码到本地:
    $ svn co --depth empty http://www.github.com/Lewuathe/n42
    Checked out revision 1.
    $ cd repo
    $ svn up trunk
    
    n42 Build Status

    n42是nodejs的深层学习模块。

    如何安装

    
    $ npm install n42
    
    
    
    

    启动

    var n42 =require('n42');// input data// This is made of sylvester matrixvar input =$M([
     [1.0, 1.0, 0.0, 0.0],
     [1.0, 1.0, 0.2, 0.0],
     [1.0, 0.9, 0.1, 0.0],
     [0.0, 0.0, 0.0, 1.0],
     [0.0, 0.0, 0.8, 1.0],
     [0.0, 0.0, 1.0, 1.0]
    ]);// label data// This is made of sylvester matrixvar label =$M([
     [1.0, 0.0],
     [1.0, 0.0],
     [1.0, 0.0],
     [0.0, 1.0],
     [0.0, 1.0],
     [0.0, 1.0]
    ]);var sda =newn42.SdA(input, label, 4, [3, 3], 2);// Training all hidden layerssda.pretrain(0.3, 0.01, 1000);// Tuning output layer which is composed of logistics regressionsda.finetune(0.3, 50);// Test datavar data =$M([
     [1.0, 1.0, 0.0, 0.0],
     [0.0, 0.0, 1.0, 1.0]
    ]);console.log(sda.predict(data));/** * Predict answers * [0.9999998973561728, 1.0264382721184357e-7] ~ [1.0, 0.0] * [4.672230837774381e-28, 1] ~ [0.0, 1.0] */

    算法

    类实现算法
    NN神经网络
    LogisticsRegression物流回归
    SdA堆叠式去噪 Autoencoder
    DBN深信念网

    API文档

    n42 API文档

    许可证

    MIT许可证请查看许可证文件以获得详细信息。


    相关文章