Simple neural network written in C#, .NET 7. Program uses a dataset from here. Image file should be extracted as data/images
, and label file should be extracted as data/labels
.
# verify that .NET is on the path
dotnet --info
# build
CONFIG=Release
dotnet build -c $CONFIG
# run
dotnet NeuralNetwork/bin/$CONFIG/net7.0/NeuralNetwork.dll ...
Basic usage:
dotnet NeuralNetwork.dll [options] [data-file]
Options:
--train
Train the network
--break-threshold <threshold>
Stop training when the average absolute cost of a batch falls under <threshold>. Do not specify to train indefinitely.
Arguments:
data-file:
The JSON file to save/load weight and bias data from