LittleNN-core 1.0.4

dotnet add package LittleNN-core --version 1.0.4                
NuGet\Install-Package LittleNN-core -Version 1.0.4                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="LittleNN-core" Version="1.0.4" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add LittleNN-core --version 1.0.4                
#r "nuget: LittleNN-core, 1.0.4"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install LittleNN-core as a Cake Addin
#addin nuget:?package=LittleNN-core&version=1.0.4

// Install LittleNN-core as a Cake Tool
#tool nuget:?package=LittleNN-core&version=1.0.4                

LittleNN

Introduction


  • The expectation is to provided a neural network minimization implementation.
  • TargetFramework is .net core 1.1. You can modify it according to your needs.
  • All of the code is written in C#, and the project use the MIT LICENSE.
  • Get more info from repository README.
  • If you need faster performance, it is recommended to use other popular deep learning frameworks such as TensorFlow, PyTorch, or Keras.

Usage

Example1 Xor Operator

Input A Input B Output
1 1 0
1 0 1
0 1 1
0 0 0

Code

NeuralNetwork network = new NeuralNetwork(2, new int[] { 6, 6, }, 1);

StandardData[] dataSets = new StandardData[]
{
  new StandardData(new float[] { 1f, 1f }, new float[] { 0f }),
  new StandardData(new float[] { 0f, 1f }, new float[] { 1f }),
  new StandardData(new float[] { 1f, 0f }, new float[] { 1f }),
  new StandardData(new float[] { 0f, 0f }, new float[] { 0f }),
};

Random random = new Random();
for (int i = 0; i < 1000 * 1000; i++)
{
    StandardData dataSet = dataSets[random.Next() % dataSets.Length];
    float error = network.Train(dataSet);
    if (i % (20 * 1000) == 0)
        // Expect: The error will decrease gradually
        Console.WriteLine($"{i}   : {error}");
}

Example2 OCR Number Recognize

  • Get more info from repository README.

Example3 Serialize

  • Get more info from repository README.
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp1.1 is compatible.  netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.4 207 4/15/2023
1.0.3.1 180 4/5/2023