New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

ann-gesture-parser

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ann-gesture-parser

ANN powered gesture parser

latest
Source
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

ann-gesture-parser

ANN powered gesture parser

example and usage

see example/index.html for a live example

var gesture = new GestureParser({

	// the ANN has an input layer with 20 nodes, a hidden layer with 30 nodes and
	// an output layer with 8 nodes
	sizes: [20, 30, 8],

	// must be between 0 and 1, smaller is slower
	trainingSpeed: 0.5,

	// max loops in one training
	maxTrainingTimes: 1e4,

	// minimal error to end training
	minTrainingError: 1e-3,

	// output values greater than (0.5 + threshold) will be 1,
	// and those less than (0.5 - threshold) will be 0
	outputThreshold: 0.1,
})

// train the ANN
gesture.add(POSITION_ARRAY, GESTURE_NAME)

assert.equal(gesture.test(POSITION_ARRAY), GESTURE_NAME)

FAQs

Package last updated on 29 Mar 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts