# tf-simple

> tf-simple allows for easy neural network creation and training in tensorflow.js

Latest version **0.1.5** (published 2020-01-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install tf-simple
pnpm add tf-simple
yarn add tf-simple
bun add tf-simple
```

## 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.1.5 |
| Published | 2020-01-20 |
| First published | 2020-01-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 58.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Sam Fulton |
| Maintainers | samfulton |
| Keywords | tensorflow, tensorflow js, machine learning, neural network, AI, artificial intelligence |

## Links

- npm: https://www.npmjs.com/package/tf-simple
- npm.io page: https://npm.io/package/tf-simple

## Dependencies (1)

- [@tensorflow/tfjs-node](https://npm.io/package/@tensorflow/tfjs-node.md) ^1.5.1

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 0.1.5 (latest) — 2020-01-20
- 0.1.4 — 2020-01-16
- 0.1.3 — 2020-01-16
- 0.1.2 — 2020-01-16
- 0.0.1 — 2020-01-16

## README

# Example Usage

```javascript
const train = require('tf-simple').train;

const data = [
    {inputs: [0,0, 'yeet', 'teey'], outputs: [0]},
    {inputs: [0,1, 'yeet', 'teey'], outputs: [1]},
    {inputs: [1,0, 'yeet', 'teey'], outputs: [1]},
    {inputs: [1,1, 'yeet', 'teey'], outputs: [0]},
];

const arch = [
    {units: 12, activation: 'relu'},
    {units: 1, activation: 'sigmoid'}
]

(async()=>{

    await train({
        data, 
        arch,
        useValLoss: false,
        desiredLoss:  .00001,
        validation: .3, 
        shuffle: false,
        verbose: 2
    });
    
})();
```

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