JavaScript library for deep neural networks
Top 70.5% on sourcepulse
Dann is a deep neural network library for JavaScript, enabling developers to train and deploy neural networks directly within web browsers or Node.js environments. It targets web developers and researchers looking for a lightweight, client-side solution for machine learning tasks, offering the benefit of on-device processing and easy integration into existing JavaScript projects.
How It Works
Dann implements neural networks using a feedforward architecture with customizable layers and activation functions (leakyReLU, tanH). It supports both backpropagation for gradient-based training and mutation-based training, suitable for neuroevolutionary simulations. The library allows saving trained network states to JSON and converting models into standalone JavaScript functions for prediction without requiring the Dann library itself.
Quick Start & Requirements
<script src="https://cdn.jsdelivr.net/npm/dannjs"></script>
npm i dannjs
Highlighted Details
Maintenance & Community
The project is primarily maintained by Matias Vazquez-Levi, with contributions from Francesco Ciulla, Labnan, sharkAce, Hasnain Iqbal, EL Ramos, viabhinav, and and1can. A Discord server is available for community interaction.
Licensing & Compatibility
Licensed under the MIT license, allowing for permissive use, modification, and distribution, including in commercial and closed-source applications.
Limitations & Caveats
The library appears best suited for smaller models and simpler tasks, particularly when using mutation-based training. Performance on very large datasets or complex architectures may be limited by JavaScript's execution environment compared to native or GPU-accelerated libraries.
5 months ago
1 day