battelle.nn.Neuron

class battelle.nn.Neuron(weights, bias, activation_function)

An instance of a neuron

weights

The initial weights of the neuron

Type

array

bias

The initial bias value of the neuron

Type

float

activation_function

activation function to use (tanh, sigmoid…)

Type

String

__init__(weights, bias, activation_function)

Methods

__init__(weights, bias, activation_function)

forward(x)

Propagate value x through the neuron.

Attributes

activation_function

bias

h

weights