A lightweight extensible library for constructing artificial neural network in modern C++.
This project is built with
- MSVC 17.0 and above.
- CMAKE, 3.20 and above.
Note: Any compiler which supports C++20 may be compatible.
- Clone the project with submodules.
git clone --recursive https://github.com/SmartPolarBear/cppbp.git
Note that --recursive
option is required, to clone submodules with the project source tree. If you forget it, you may try:
git submodule update --init --recursive
- Build Targets
An IDE like CLion is recommended. If you want to build with bare CMake, you can do:
mkdir build
cmake ../
cmake --build . --target <some target>
Target cppbp
is the library, and iris_bp
is an example on iris dataset classification.
To link cppbp library to your own project, you can include the source tree of cppbp project directly with CMake:
add_subdirectory(cppbp)
And then link the library target cppbp
to some target like:
target_link_libraries(<your target> PRIVATE cppbp)
We provide an example on the classification of the iris dataset. To play with it, build iris_bp
target. The dataset CSV file should be put in data/iris.data
, in the same level of directory with the executable file.
Contributions are what make the open source community such an amazing place to be learned, inspire, and create_on_heap. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Furthermore, you are welcomed to:
- Ask a question
Also, have a look at our FAQs. - Start a discussion
Discussions can be about any topics or ideas related to cppbp. - Make a feature proposal
Language features do you want to appear or not to appear in cppbp? For example, you can propose a new grammar making the lox better, or an idea for library features.
Copyright (c) 2022 SmartPolarBear
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.