Skip to content

Commit bd0b7c6

Browse files
authored
1.0.0
- Added multilayer perceptron - Added activation functions - Made stable version
1 parent c102e7b commit bd0b7c6

34 files changed

+883
-0
lines changed

CMakeLists.txt

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# This is first version of NeuralLib please dont try to compile this
2+
# use including by find_package()
3+
# But if you want to try it, you can read the code below
4+
5+
cmake_minimum_required(VERSION 3.12)
6+
project(Neural VERSION 1.0.0)
7+
8+
set(CMAKE_CXX_STANDARD 17)
9+
10+
set(CMAKE_SHARED_LIBRARY_PREFIX "")
11+
12+
set(CMAKE_STATIC_LIBRARY_PREFIX "")
13+
14+
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY lib)
15+
16+
# Definition of the main goal
17+
add_library(${PROJECT_NAME}_Functions SHARED
18+
src/Activation/Functions.cpp
19+
)
20+
21+
add_library(${PROJECT_NAME}_Perceptron SHARED
22+
src/Perceptron/Perceptron.cpp
23+
src/Perceptron/Layer.cpp
24+
)
25+
26+
# TODO: Delete this later
27+
#add_library(${PROJECT_NAME} SHARED
28+
# src/Perceptron/Perceptron.cpp src/Perceptron/Layer.cpp
29+
# )
30+
31+
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include) # Adding an include folder
32+
33+
# Create an installation package
34+
install(TARGETS
35+
${PROJECT_NAME}_Perceptron
36+
${PROJECT_NAME}_Functions
37+
EXPORT ${PROJECT_NAME}Config
38+
LIBRARY DESTINATION lib
39+
RUNTIME DESTINATION bin
40+
INCLUDES DESTINATION include
41+
)
42+
43+
install(DIRECTORY include/ DESTINATION include)
44+
45+
install(EXPORT ${PROJECT_NAME}Config
46+
DESTINATION share/${PROJECT_NAME}/cmake
47+
)
48+
49+
export(TARGETS
50+
${PROJECT_NAME}_Perceptron
51+
${PROJECT_NAME}_Functions
52+
FILE ${PROJECT_NAME}Config.cmake
53+
)
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
cmake_minimum_required(VERSION 3.23)
2+
project(NeuralNetwork)
3+
4+
set(CMAKE_CXX_STANDARD 17)
5+
6+
if (WIN32)
7+
set(CMAKE_PREFIX_PATH path/to/SFML/lib/cmake path/to/Neural/share/cmake) # change here
8+
endif ()
9+
10+
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ../build) # change here
11+
12+
set(CMAKE_SHARED_LIBRARY_PREFIX "")
13+
14+
find_package(SFML COMPONENTS window graphics system CONFIG REQUIRED)
15+
16+
include_directories(path/to/Neural/include/) # change here
17+
18+
find_package(Neural REQUIRED)
19+
20+
add_executable(
21+
NeuralNetwork
22+
main.cpp
23+
)
24+
25+
target_link_libraries(NeuralNetwork PUBLIC Neural_Perceptron Neural_Functions)
26+
27+
target_link_libraries(NeuralNetwork PRIVATE sfml-graphics sfml-window sfml-system)
28+
137 KB
Binary file not shown.
34.6 KB
Binary file not shown.
74.2 KB
Binary file not shown.
52.9 KB
Binary file not shown.

examples/examples_number_recognition/build/gen/gen.txt

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.
654 KB
Binary file not shown.
453 KB
Binary file not shown.
1.58 MB
Binary file not shown.

0 commit comments

Comments
 (0)