PHP Classes

File: OO/func/activate.php

Recommend this page to a friend!
  Classes of Rizza   PHP Neural Network Library   OO/func/activate.php   Download  
File: OO/func/activate.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: PHP Neural Network Library
Implements a multilayer perceptron neural network
Author: By
Last change:
Date: 3 years ago
Size: 151 bytes
 

Contents

Class file image Download
<?php
namespace nn;
function
sigmoid($x){
    return
1/(1+exp(-$x));
}
function
sigmoid_diff($x){
    return
$x*(1-$x);//sigmoid($x)*(1-sigmoid($x));
}