# oya-ann

> artificial neural network Javascript library

Latest version **0.6.0** (published 2024-10-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install oya-ann
pnpm add oya-ann
yarn add oya-ann
bun add oya-ann
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.6.0 |
| Published | 2024-10-04 |
| First published | 2018-01-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 164.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Karl Lew |
| Maintainers | firepick |
| Keywords | artifical, neural, networks, OyaMist |

## Links

- npm: https://www.npmjs.com/package/oya-ann
- Repository: https://github.com/oyamist/oya-ann
- Issues: https://github.com/oyamist/oya-ann/issues
- npm.io page: https://npm.io/package/oya-ann

## Dependencies (3)

- [mathjs](https://npm.io/package/mathjs.md) ^9.4.2
- [oya-ann](https://npm.io/package/oya-ann.md) ^0.3.0
- [winston](https://npm.io/package/winston.md) ^2.3.1

## Recent versions

- 0.6.0 (latest) — 2024-10-04
- 0.5.0 — 2022-06-15
- 0.4.0 — 2022-06-15
- 0.3.0 — 2022-06-11
- 0.2.1 — 2021-06-07
- 0.2.0 — 2021-06-07
- 0.1.5 — 2019-10-27
- 0.1.4 — 2019-07-19
- 0.1.3 — 2019-07-18
- 0.1.1 — 2018-01-18
- 0.1.0 — 2018-01-17

## README

**OyaAnn** is a Javascript library for building, training and using 
artificial neural networks (ANNs) that approximate
and model simple multi-variate relationships. 
**OyaAnn** neural networks can be generated dynamically 
from observational data
according to need and serialized for later use.

Consider, for example, temperature compensation for conductivity
measurements (i.e., EC/PPM). EC/PPM probes are temperature sensitive
and readings will change with temperature. For example, the EC
of a reference solution having EC=1413 microsiemens @ 25&deg;C
may vary as follows 
([Atlas Scientific EC-EZO](https://www.atlas-scientific.com/_files/_datasheets/_circuit/EC_EZO_Datasheet.pdf)):

| &deg;C    | EC   |
| ---- | ---- |
| 5    | 896  |
| 10   | 1020 |
| 15   | 1147 |
| 20   | 1278 |
| 25   | 1413 |
| 30   | 1548 |
| 35   | 1711 |
| 40   | 1860 |
| 45   | 2009 |
| 50   | 2158 |

To complicate matters further, solutions with different dissolved solids will 
each exhibit their own individual temperature compensation curves.
Modeling, calibrating and measuring conductivity for different solutions at
different temperatures is therefore a challenge. What is needed is a simple
way to create calibrated models from observed data. Neural networks
are ideal for this task.

With **OyaAnn**, we can generate custom temperature compensation ANNs 
for new nutrient solutions and train them with locally observed data. 
Once trained, these ANNs can be archived and re-used as needed.

```js
var examples = [
    new Example([5],[896]),
    new Example([10],[1020]),
    new Example([15],[1147]),
    new Example([20],[1278]),
    new Example([25],[1413]),
    new Example([30],[1548]),
    new Example([35],[1711]),
    new Example([40],[1860]),
    new Example([45],[2009]),
    new Example([50],[2158]),
];
network.train(examples);
```

### Installation
Use `npm` to install oya-ann.

`npm install oya-ann`

### See Also

* OyaAnn is a divergent fork of [Kinann](https://github.com/firepick/kinann) repurposed for OyaMist applications.
* [OyaAnn wiki...](https://github.com/oyamist/oya-ann/wiki)
* [mathjs](http://mathjs.org) many thanks to MathJS for expression parsing and derivatives!

---
_Source: https://npm.io/package/oya-ann · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
