npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

aneron

v1.0.1

Published

minimalist neural network library

Downloads

5

Readme

logo

Mouludin - Aneron v1.0.0 (Beta)

Minimalist neural network library for machine learning & deep learning in Javascript

Getting started

Node.JS

If using on node.js you need to install via npm in your terminal / command prompt.

  $ npm i aneron

Embeded HTML

  <script src="https://cdn.jsdelivr.net/npm/[email protected]/aneron.min.js"></script>

How to use this library?

if you use node.js you need to import it first

  let Ane = require('aneron')

Example XOR problem

Determine the layers:

example

 let ac = Ane.ac
 let model = new Ane([2],[2,ac.sigmoid],[1,ac.sigmoid])

You can give more than 3 layers. it depends on how much you need. Note: minimum is 3 layers

I have provided some activation functions that you can use:

  • sigmoid (Range = (0,1))
Ane.ac.sigmoid
  • hyperbolic tangent / tanh (Range = (-1,1))
Ane.ac.tanh
  • softsign (Range = (-1,1))
Ane.ac.softsign

Training data:

table


  // DATASET
  // input 
  let xs = [[0,0],[0,1],[1,1],[1,0]]
  //output
  let ys = [[0],[1],[0],[1]]
  
  // epochs is the entire processing by the learning algorithm of the entire train-set.
  model.fit(xs,ys,{epochs:10000})

Note: the greater the number of epohcs. the smaller errors you get

Prediction:

 console.log(model.predict([0,0]))
 console.log(model.predict([0,1]))
 console.log(model.predict([1,1]))
 console.log(model.predict([1,0]))

Output:

[ 0.014714430876991562 ]
[ 0.9852129041526403 ]
[ 0.018262319885759194 ]
[ 0.985212848886903 ]

that is a simple example of using this library

Authors

  • Muhammad Mauludin Anwar - Initial work - mouludin

License

This project is licensed under the terms of the MIT license, see LICENSE.