Sample implementation of a multithreading decision tree in C++17. I have based it on https://www.youtube.com/watch?v=LDRbO9a6XPU, but I have added threading using a fork-join strategy.
It's not the fastest implementation but is fast enough and is a good starting point.
- You need to have CMake and Conan installed.
- I have provided Conan profiles that I have used.
- Open cmd in folder:
- cd ..
- mkdir build-DecisionTree-Release
- conan install ../DecisionTree -pr=visual_studio -b=missing
- cmake ../DecisionTree -DCMAKE_BUILD_TYPE=Release (May need extra parameters for selecting the compiler.)
- Compile and execute.