UNPKG

layerganza

Version:

A feed-forward neural network with injectable layers, activation functions, and optimizers.

12 lines (11 loc) 215 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class Tanh { xToY(x) { return Math.tanh(x); } yToSlope(y) { return 1 - y * y; } } exports.default = Tanh;