Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additional Optimizations and OpenMP Support #120

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

Behnke02
Copy link
Contributor

Additional overloaded methods were created for LogReg's precision and recall methods using a vector of already-predicted data.
Additional for-loops containing an iterative if-statement were reduced to contain a boolean expression to eliminate branching.

Root CMakeLists.txt file was modified to also search for OpenMP library for inclusion for future implementation of multi-threading in applicable modules.
Note: Testing of CMake installation is required to ensure that OpenMP inclusion is implemented correctly.

Added additional overloaded methods for LogReg precision and recall methods given a vector of predicted outputs.
Added additional method declarations for overloaded precision and recall methods.
Added additional overloaded methods for LogReg's precision and recall methods to accept a vector of already-predicted outputs.
Also fixed a mistake from the previous commit where an if-statement was not removed from LogReg's accuracy method to eliminate branching.
Went through all ml files and reduced for-loops containing an iterative if-statement to addition of a boolean expression to eliminate branching.
Adding OpenMP as a non-required link target in the CMake file for future multi-threaded expansion in library modules.
Added OpenMP multithreading support to applicable loops where processes could be parallelized.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant