tfann library Null safety

Artificial Neural Network related structures and classes.

To use this library in your code:

import 'package:tfann/tfann.dart';

Classes

ActivationFunction
FeedArtifacts
FLeftMatrix
Simd based arbitrary size matrix [...]
FVector
Simd based column vector type.
RandomSupply
TfannLayer
TfannNetwork
A structure of a complete fully-connected network.
TrainArtifacts
TrainSet
TrainSetInputError
TrainSetInputOutput

Constants

activationAbsSigmoid → const ActivationFunction
ActivationFunction(ActivationFunctionType.abs, -1.0, 1.0, func: absSigmoidFunc, derivative: absSigmoidDeriv, funcSIMD: absSigmoidFuncSimd, derivativeSIMD: absSigmoidDerivSimd)
activationBell → const ActivationFunction
ActivationFunction(ActivationFunctionType.bell, 0.0, 1.0, func: bellFunc, derivative: bellDeriv)
activationCubicSigmoid → const ActivationFunction
ActivationFunction(ActivationFunctionType.cubicSigmoid, double.negativeInfinity, double.infinity, func: cubicSigmoidFunc, derivative: cubicSigmoidDeriv, funcSIMD: cubicSigmoidFuncSimd, derivativeSIMD:…
activationFastBell → const ActivationFunction
ActivationFunction(ActivationFunctionType.fastBell, 0.0, 1.0, func: fastBellFunc, derivative: fastBellDeriv, funcSIMD: fastBellFuncSimd, derivativeSIMD: fastBellDerivSimd)
activationFastSigmoid → const ActivationFunction
ActivationFunction(ActivationFunctionType.divlineSigmoid, -1.0, 1.0, func: divlineSigmoidFunc, derivative: divlineSigmoidDeriv, funcSIMD: divlineSigmoidFuncSimd, derivativeSIMD: divlineSigmoidDerivSim…
activationFunnyHat → const ActivationFunction
ActivationFunction(ActivationFunctionType.funnyHat, double.negativeInfinity, 1, func: funnyHatFunc, derivative: funnyHatDeriv, funcSIMD: funnyHatFuncSimd, derivativeSIMD: funnyHatDerivSimd)
activationLine → const ActivationFunction
ActivationFunction(ActivationFunctionType.line, double.negativeInfinity, double.infinity, func: simpleLineFunc, derivative: simpleLineDeriv, funcSIMD: simpleLineFuncSimd, derivativeSIMD: simpleLineDer…
activationLogisticSigmoid → const ActivationFunction
ActivationFunction(ActivationFunctionType.logistic, 0.0, 1.0, func: logisticFunc, derivative: logisticDeriv)
activationSquartered → const ActivationFunction
ActivationFunction(ActivationFunctionType.squartered, 0.0, double.infinity, func: squarteredFunc, derivative: squarteredDeriv, funcSIMD: squarteredFuncSimd, derivativeSIMD: squarteredDerivSimd)
activationTanh → const ActivationFunction
ActivationFunction(ActivationFunctionType.tanh, -1.0, 1.0, func: tanh, derivative: tanhDeriv)
activationUACSLS → const ActivationFunction
ActivationFunction(ActivationFunctionType.uacsls, double.negativeInfinity, double.infinity, func: uacslsFunc, derivative: uacslsDeriv, funcSIMD: uacslsFuncSimd, derivativeSIMD: uacslsDerivSimd)
activationUSCLS → const ActivationFunction
ActivationFunction(ActivationFunctionType.uscls, double.negativeInfinity, double.infinity, func: usclsFunc, derivative: usclsDeriv, funcSIMD: usclsFuncSimd, derivativeSIMD: usclsDerivSimd)
activationUSCSLS → const ActivationFunction
USCSLS unbounded S curve smoothen line segments
ActivationFunction(ActivationFunctionType.uscsls, double.negativeInfinity, double.infinity, func: uscslsFunc, derivative: uscslsDeriv, funcSIMD: uscslsFuncSimd, derivativeSIMD: uscslsDerivSimd)
SQRT_TWO_DIV_PI → const double
0.7978845608028653558798921198687

Properties

activationTypeFromString Map<String, ActivationFunctionType>
read / write
mapActivationFunction Map<ActivationFunctionType, ActivationFunction>
final

Functions

absSigmoidDeriv(double x) double
absSigmoidDerivSimd(Float32x4 x) Float32x4
absSigmoidFunc(double x) double
absSigmoidFuncSimd(Float32x4 x) Float32x4
bellDeriv(double x) double
bellFunc(double x) double
compileNetwork(TfannNetwork network, {String functionName = 'tfann_evaluate'}) String
Returns a pure dart code that represents the function of this network.
cubicSigmoidDeriv(double x) double
cubicSigmoidDerivSimd(Float32x4 x) Float32x4
cubicSigmoidFunc(double x) double
cubicSigmoidFuncSimd(Float32x4 x) Float32x4
divlineSigmoidDeriv(double x) double
divlineSigmoidDerivSimd(Float32x4 x) Float32x4
divlineSigmoidFunc(double x) double
divlineSigmoidFuncSimd(Float32x4 x) Float32x4
fastBellDeriv(double x) double
fastBellDerivSimd(Float32x4 x) Float32x4
fastBellFunc(double x) double
fastBellFuncSimd(Float32x4 x) Float32x4
funnyHatDeriv(double x) double
funnyHatDerivSimd(Float32x4 x) Float32x4
funnyHatFunc(double x) double
funnyHatFuncSimd(Float32x4 x) Float32x4
logisticDeriv(double x) double
logisticFunc(double x) double
sech(double x) double
simpleLineDeriv(double x) double
simpleLineDerivSimd(Float32x4 x) Float32x4
simpleLineFunc(double x) double
simpleLineFuncSimd(Float32x4 x) Float32x4
sinh(double x) double
squarteredDeriv(double x) double
squarteredDerivSimd(Float32x4 x) Float32x4
squarteredFunc(double x) double
squarteredFuncSimd(Float32x4 x) Float32x4
tanh(double x) double
tanhDeriv(double x) double
uacslsDeriv(double x) double
uacslsDerivSimd(Float32x4 x) Float32x4
uacslsFunc(double x) double
UACSLS unbounded ascending curve smoothen line segments
uacslsFuncSimd(Float32x4 x) Float32x4
usclsDeriv(double x) double
usclsDerivSimd(Float32x4 x) Float32x4
usclsFunc(double x) double
USCLS unbounded S curve line segments
usclsFuncSimd(Float32x4 x) Float32x4
uscslsDeriv(double x) double
uscslsDerivSimd(Float32x4 x) Float32x4
uscslsFunc(double x) double
uscslsFuncSimd(Float32x4 x) Float32x4

Enums

ActivationFunctionType