hnn-0.1: A minimal Haskell Neural Network LibraryContentsIndex
AI.HNN.Net
Contents
Computation
Quadratic Error
Learning
Description
Net module, defining functions to work on a neural network, which is a list of list of neurons
Synopsis
check :: [[Neuron]] -> Bool
nn :: [[Neuron]] -> [[Neuron]]
computeNetU :: [[Neuron]] -> UArr Double -> UArr Double
computeNet :: [[Neuron]] -> [Double] -> [Double]
quadErrorNetU :: [[Neuron]] -> (UArr Double, UArr Double) -> Double
quadErrorNet :: [[Neuron]] -> ([Double], [Double]) -> Double
globalQuadErrorNetU :: [[Neuron]] -> [(UArr Double, UArr Double)] -> Double
globalQuadErrorNet :: [[Neuron]] -> [([Double], [Double])] -> Double
backPropU :: Double -> [[Neuron]] -> (UArr Double, UArr Double) -> [[Neuron]]
backProp :: Double -> [[Neuron]] -> ([Double], [Double]) -> [[Neuron]]
trainAux :: Double -> [[Neuron]] -> [(UArr Double, UArr Double)] -> [[Neuron]]
trainU :: Double -> Double -> [[Neuron]] -> [(UArr Double, UArr Double)] -> [[Neuron]]
train :: Double -> Double -> [[Neuron]] -> [([Double], [Double])] -> [[Neuron]]
Documentation
check :: [[Neuron]] -> Bool
nn :: [[Neuron]] -> [[Neuron]]
Computation
computeNetU :: [[Neuron]] -> UArr Double -> UArr Double
Computes the output of the given neural net on the given inputs
computeNet :: [[Neuron]] -> [Double] -> [Double]
Computes the output of the given neural net on the given inputs
Quadratic Error
quadErrorNetU :: [[Neuron]] -> (UArr Double, UArr Double) -> Double
Returns the quadratic error of the neural network on the given sample
quadErrorNet :: [[Neuron]] -> ([Double], [Double]) -> Double
Returns the quadratic error of the neural network on the given sample
globalQuadErrorNetU :: [[Neuron]] -> [(UArr Double, UArr Double)] -> Double
Returns the quadratic error of the neural network on the given samples
globalQuadErrorNet :: [[Neuron]] -> [([Double], [Double])] -> Double
Returns the quadratic error of the neural network on the given samples
Learning
backPropU :: Double -> [[Neuron]] -> (UArr Double, UArr Double) -> [[Neuron]]
Train the given neural network using the backpropagation algorithm on the given sample with the given learning ratio (alpha)
backProp :: Double -> [[Neuron]] -> ([Double], [Double]) -> [[Neuron]]
Train the given neural network using the backpropagation algorithm on the given sample with the given learning ratio (alpha)
trainAux :: Double -> [[Neuron]] -> [(UArr Double, UArr Double)] -> [[Neuron]]
trainU :: Double -> Double -> [[Neuron]] -> [(UArr Double, UArr Double)] -> [[Neuron]]
Train the given neural network on the given samples using the backpropagation algorithm using the given learning ratio (alpha) and the given desired maximal bound for the global quadratic error on the samples (epsilon)
train :: Double -> Double -> [[Neuron]] -> [([Double], [Double])] -> [[Neuron]]
Train the given neural network on the given samples using the backpropagation algorithm using the given learning ratio (alpha) and the given desired maximal bound for the global quadratic error on the samples (epsilon)
Produced by Haddock version 2.4.2