Skip to content

Additional Optimizations and OpenMP Support - #120

Open
Behnke02 wants to merge 8 commits into
akielaries:mainfrom
Behnke02:main
Open

Additional Optimizations and OpenMP Support#120
Behnke02 wants to merge 8 commits into
akielaries:mainfrom
Behnke02:main

Conversation

@Behnke02

Copy link
Copy Markdown
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