UNPKG

layerganza

Version:

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

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