This commit is contained in:
novak_99 2022-01-21 21:47:44 -08:00
parent 820e9105a6
commit 11fee46aa6
2 changed files with 12 additions and 3 deletions

View File

@ -8,10 +8,19 @@ Machine learning is a vast and exiciting discipline, garnering attention from sp
</p> </p>
## Installation ## Installation
Begin by downloading the header files for the ML++ library. You can do this by cloning the repository and extracting the MLPP directory within it, as well as the "MLPP.so" file. Begin by downloading the header files for the ML++ library. You can do this by cloning the repository and extracting the MLPP directory within it:
``` ```
git clone https://github.com/novak-99/MLPP git clone https://github.com/novak-99/MLPP
``` ```
Next, execute the "./buildSO.sh" shell script. If you lack the necessary permissions, be sure to change those, too:
```
chmod +x buildSO.sh
./buildSO.sh
```
To allow your projects to access the ML++ library, move the shared object file to the /usr/local/lib directory:
```
sudo mv SharedLib/MLPP.so /usr/local/lib
```
After doing so, maintain the ML++ source files in a local directory and include them in this fashion: After doing so, maintain the ML++ source files in a local directory and include them in this fashion:
```cpp ```cpp
#include "MLPP/Stat/Stat.hpp" // Including the ML++ statistics module. #include "MLPP/Stat/Stat.hpp" // Including the ML++ statistics module.
@ -20,9 +29,9 @@ int main(){
... ...
} }
``` ```
Finally, after you have concluded creating a project, compile it using g++. Be sure to store the MLPP.so file in a local directory. Finally, after you have concluded creating a project, compile it using g++:
``` ```
g++ main.cpp MLPP.so --std=c++17 g++ main.cpp /usr/local/lib/MLPP.so --std=c++17
``` ```
## Usage ## Usage

BIN
a.out

Binary file not shown.