BrabeNetz 1.5.2
A fast and clean supervised neural network in C++, capable of effectively using multiple cores
Install-Package BrabeNetz -Version 1.5.2
dotnet add package BrabeNetz --version 1.5.2
<PackageReference Include="BrabeNetz" Version="1.5.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add BrabeNetz --version 1.5.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
BrabeNetz
🌐 A fast and clean supervised neural network in C++, capable of effectively using multiple cores 🧠
Usage
-
Build & link library
-
Choose your interface
brabe_netz.h
: [Recommended] A wrapper for the rawnetwork.h
interface, but with error handling and modern C++ interface styling such asstd::vector
s,std::exception
s, etc.network.h
: The rawnetwork
with C-style arrays and no bound/error checking. Only use this if performance is important.
-
Constructors
(initializer_list<int>, properties)
: Construct a new neural network with the given network size (e.g.{ 2, 3, 4, 1 }
) and randomize all base weights and biases - ref(network_topology&, properties)
: Construct a new neural network with the given network topology and import it's existing weights and biases - ref(string, properties)
: Construct a new neural network with and load the neural network state from the file specified inproperties.state_file
- ref
-
Functions
network_result brabe_netz::feed(std::vector<double>& input_values)
: Feed the network input values and forward propagate through all neurons to estimate a possible output (Use thenetwork_result
structure (ref) to access the result of the forward propagation, such as.values
to view the output) - refdouble network_result::adjust(std::vector<double>& expected_output)
: Backwards propagate through the whole network to adjust wrong neurons for result trimming and return the total network error - refvoid save(string path)
: Save the network's state to disk by serializing weightsvoid set_learnrate(double value)
: Set the network's learning rate. It is good practice and generally recommended to use one divided by the train count, so the learn rate decreases the more often you train - refnetwork_topology& build_topology()
: Build and set the network topology object of the current network's state (can be used for network visualization or similar) - ref
BrabeNetz
🌐 A fast and clean supervised neural network in C++, capable of effectively using multiple cores 🧠
Usage
-
Build & link library
-
Choose your interface
brabe_netz.h
: [Recommended] A wrapper for the rawnetwork.h
interface, but with error handling and modern C++ interface styling such asstd::vector
s,std::exception
s, etc.network.h
: The rawnetwork
with C-style arrays and no bound/error checking. Only use this if performance is important.
-
Constructors
(initializer_list<int>, properties)
: Construct a new neural network with the given network size (e.g.{ 2, 3, 4, 1 }
) and randomize all base weights and biases - ref(network_topology&, properties)
: Construct a new neural network with the given network topology and import it's existing weights and biases - ref(string, properties)
: Construct a new neural network with and load the neural network state from the file specified inproperties.state_file
- ref
-
Functions
network_result brabe_netz::feed(std::vector<double>& input_values)
: Feed the network input values and forward propagate through all neurons to estimate a possible output (Use thenetwork_result
structure (ref) to access the result of the forward propagation, such as.values
to view the output) - refdouble network_result::adjust(std::vector<double>& expected_output)
: Backwards propagate through the whole network to adjust wrong neurons for result trimming and return the total network error - refvoid save(string path)
: Save the network's state to disk by serializing weightsvoid set_learnrate(double value)
: Set the network's learning rate. It is good practice and generally recommended to use one divided by the train count, so the learn rate decreases the more often you train - refnetwork_topology& build_topology()
: Build and set the network topology object of the current network's state (can be used for network visualization or similar) - ref
Release Notes
Performance improvements, Code cleanup, Properties parameters
Dependencies
This package has no dependencies.
Used By
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.