Back to index

python-biopython  1.60
Classes | Functions
Bio.NeuralNetwork.BackPropagation.Layer Namespace Reference

Classes

class  AbstractLayer
class  InputLayer
class  HiddenLayer
class  OutputLayer

Functions

def logistic_function

Detailed Description

Model a single layer in a nueral network.

These classes deal with a layers in the neural network (ie. the input layer,
hidden layers and the output layer).

Function Documentation

Transform the value with the logistic function.

XXX This is in the wrong place -- I need to find a place to put it
that makes sense.

Definition at line 10 of file Layer.py.

00010 
00011 def logistic_function(value):
00012     """Transform the value with the logistic function.
00013 
00014     XXX This is in the wrong place -- I need to find a place to put it
00015     that makes sense.
00016     """
00017     return 1.0 / (1.0 + math.exp(-value))