repo_description: 🤖 GPU accelerated Neural networks in JavaScript for Browsers and Node.js
repo_topics: api brain browser convolutional-neural-networks easy-to-use hacktoberfest neural-network node nodejs recurrent-neural-networks stream web
code: /**
   * sigmoid activation
   */
  export function activate(value: number): number {
    return 1 / (1 + Math.exp(-value));
  }
  
  /**
   * sigmoid derivative
   */
  export function measure(weight: number, error: number): number {
    return weight * (1 - weight) * error;
  }
  