neural_network_skeleton 0.2.0 neural_network_skeleton: ^0.2.0 copied to clipboard
This package contains the components necessary to build a fully connected Neural Network.
This package contains the components necessary to build a fully connected Neural Network using the Feed Forward algorithm. It lays out the barebones necessary for constructing a Neural Network that will output a set of values based on a given input.
Basic Usage #
Logical OR
const orPerceptron = Perceptron(
bias: 0.0,
threshold: 1.0,
weights: [1.0, 1.0],
);
final neuralNetwork = NeuralNetwork(
layers: const [
PerceptronLayer(
perceptrons: [
orPerceptron,
],
)
],
);
neuralNetwork.guess(inputs: [0.0, 0.0]); // [0.0]
neuralNetwork.guess(inputs: [1.0, 0.0]); // [1.0]
neuralNetwork.guess(inputs: [0.0, 1.0]); // [1.0]
neuralNetwork.guess(inputs: [1.0, 1.0]); // [1.0]
Logical AND & Logical XOR
Check the example file