From bb98e31df82b64cae6adde33900cab0180f94896 Mon Sep 17 00:00:00 2001 From: marc <78002988+novak-99@users.noreply.github.com> Date: Thu, 27 May 2021 23:10:14 -0700 Subject: [PATCH 1/7] Delete .DS_Store --- .DS_Store | Bin 6148 -> 0 bytes 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 .DS_Store diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index 77d06efbaedf7185bbeaae2e93703e85257814d9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHKOG*SW5UtVyTindjWw!2|8?-|U3hw#>W82~gGxQ+1(nSv9ZM=ZT@EE@ODAO3h zg@{NMq+TUem82hZk|H9W-}f`3DG^m@f-FWsWVq4I*lTip~U`in!d z_kC(1Ovf9Fz|y6;LaAQ4h%yF1HnKr@WFtb4+%}McFcx)bUGR~SO=t@=5sAxUKwys^0qDp%a;Q%8C$SM% XJ7z Date: Fri, 28 May 2021 11:52:29 -0700 Subject: [PATCH 2/7] Update README.md --- README.md | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 491443b..8ca4157 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,30 @@ # ML++ -Machine learning is a vast and exiciting discipline, garnering attention from specialists of many fields. Unfortunately, for C++ programmers and enthusiasts, there appears to be a lack of support for this magnificient language in the field of machine learning. As a consequence, this library was created in order to fill that void and give C++ a true foothold in the ML sphere to act as a crossroad between low level developers and machine learning engineers. +Machine learning is a vast and exiciting discipline, garnering attention from specialists of many fields. Unfortunately, for C++ programmers and enthusiasts, there appears to be a lack of support for this magnificient language in the field of machine learning. To fill that void and give C++ a true foothold in the ML sphere, I created this library. My intent with this library is for it to act as a crossroad between low-level developers and machine learning engineers.

+## Installation +Begin by downloading the header files for the ML++ library. You can do this by cloning the repository into a local directory and extracting the MLPP directory within it, as well as the "MLPP.so" file. +``` +git clone https://github.com/novak-99/MLPP +``` +After you have finished cloning it, maintain the ML++ source files in a local directory and include them in this fashion: +```cpp +#include "MLPP/Stat/Stat.hpp" // Including the ML++ statistics module. + +int main(){ +... +} +``` +Finally, after you have finished writing your file, compile it using g++. Be sure to have the MLPP.so file in a local directory. +``` +g++ main.cpp MLPP.so --std=c++17 +``` + ## Usage Please note that ML++ uses the ```std::vector``` data type for emulating vectors, and the ```std::vector>``` data type for emulating matricies. @@ -27,6 +45,7 @@ Great, you are now ready to test! To test a singular testing instance, utilize t model.modelTest(testSetInstance); ``` This will return the model's singular prediction for that example. + To test an entire dataset of instances, use the following function: ```cpp model.modelSetTest(testSet); From 5fab586fe089085e0976639510be4651e82bd844 Mon Sep 17 00:00:00 2001 From: marc <78002988+novak-99@users.noreply.github.com> Date: Fri, 28 May 2021 11:58:09 -0700 Subject: [PATCH 3/7] Update README.md --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 8ca4157..1dca354 100644 --- a/README.md +++ b/README.md @@ -138,3 +138,9 @@ The result will be the model's predictions for the entire dataset. 3. Mean Normalization 4. One Hot Representation 5. Reverse One Hot Representation +14. ***Utilities*** + 1. TP, FP, TN, FN function + 2. Precision + 3. Recall + 4. Accuracy + 5. F1 score From 161c72d78ac39556a782e8b18b61ff9636725b22 Mon Sep 17 00:00:00 2001 From: marc <78002988+novak-99@users.noreply.github.com> Date: Fri, 28 May 2021 12:32:55 -0700 Subject: [PATCH 4/7] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1dca354..3aaffdb 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Begin by downloading the header files for the ML++ library. You can do this by c ``` git clone https://github.com/novak-99/MLPP ``` -After you have finished cloning it, 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 #include "MLPP/Stat/Stat.hpp" // Including the ML++ statistics module. From 5f7e7bbe8ebf5077caed6e4f62dac639fc441ccd Mon Sep 17 00:00:00 2001 From: marc <78002988+novak-99@users.noreply.github.com> Date: Fri, 28 May 2021 12:33:56 -0700 Subject: [PATCH 5/7] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3aaffdb..23fd306 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ int main(){ ... } ``` -Finally, after you have finished writing your file, compile it using g++. Be sure to have the MLPP.so file in a local directory. +Finally, after you have concluded writing your file, compile it using g++. Be sure to have the MLPP.so file in a local directory. ``` g++ main.cpp MLPP.so --std=c++17 ``` From 5057874b5a56784113fa51119b7ec011436b5fb5 Mon Sep 17 00:00:00 2001 From: marc <78002988+novak-99@users.noreply.github.com> Date: Fri, 28 May 2021 12:46:54 -0700 Subject: [PATCH 6/7] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 23fd306..2d383f1 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # ML++ -Machine learning is a vast and exiciting discipline, garnering attention from specialists of many fields. Unfortunately, for C++ programmers and enthusiasts, there appears to be a lack of support for this magnificient language in the field of machine learning. To fill that void and give C++ a true foothold in the ML sphere, I created this library. My intent with this library is for it to act as a crossroad between low-level developers and machine learning engineers. +Machine learning is a vast and exiciting discipline, garnering attention from specialists of many fields. Unfortunately, for C++ programmers and enthusiasts, there appears to be a lack of support for this magnificient language in the field of machine learning. To fill that void and give C++ a true foothold in the ML sphere, this library was written. My intent with this library is for it to act as a crossroad between low-level developers and machine learning engineers.

Date: Fri, 28 May 2021 13:18:27 -0700 Subject: [PATCH 7/7] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2d383f1..ae4649e 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ Next, instantiate an object of the class. Don't forget to pass the input set and ```cpp LinReg model(inputSet, outputSet); ``` -Now call the optimizer that you would like to use. For iterative optimizers such as gradient descent, include the learning rate, epoch number, and whether or not to utilize the UI pannel. +Afterwards, call the optimizer that you would like to use. For iterative optimizers such as gradient descent, include the learning rate, epoch number, and whether or not to utilize the UI pannel. ```cpp model.gradientDescent(0.001, 1000, 0); ```