ActivationFunctionFactory<T>

Helpers & Utilities · AiDotNet.Factories

A factory class that creates activation functions for neural networks.

For Beginners

Activation functions are mathematical operations that determine whether a neuron in a neural network should be activated (fired) based on its input. They introduce non-linearity into the network, allowing it to learn complex patterns.

How It Works

This factory class helps you create different types of activation functions without needing to know their internal implementation details. Think of it like selecting a specific tool from a toolbox - you just specify what you need, and the factory provides it.

Methods

Method Summary
IActivationFunction<T> CreateActivationFunction(ActivationFunction activationFunction) Creates a single-value activation function of the specified type.
IVectorActivationFunction<T> CreateVectorActivationFunction(ActivationFunction activationFunction) Creates a vector activation function of the specified type.