Skip to content

JavaScript前向神经网络(推理)和反向传播(训练)的实现

License

Notifications You must be signed in to change notification settings

AlloyTeam/netural

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Netural

netural === neural net, simple AI for the web.

Features

  • Simple API
  • Super tiny size, 1 KB (gzip)
  • Support for forward propagation and back propagation

Install

npm install netural

Hello Netural

import netural from 'netural'

let network = new netural.Network({
    framework: [2, 2, 2],
    layers: [
        {w: [0.15, 0.20, 0.25, 0.30], b: 0.35, type: netural.SIGMOID},
        {w: [0.40, 0.45, 0.50, 0.55], b: 0.60, type: netural.SIGMOID}
    ],
    input: [0.05, 0.10]
})

//output: [0.010000000002984098, 0.9899999999997068]
network.train([0.01, 0.99], 300000)

License

This content is released under the MIT License.

About

JavaScript前向神经网络(推理)和反向传播(训练)的实现

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published