[clangd] Add Random Forest runtime for code completion.
authorUtkarsh Saxena <usx@google.com>
Tue, 14 Jul 2020 21:12:45 +0000 (23:12 +0200)
committerUtkarsh Saxena <usx@google.com>
Fri, 18 Sep 2020 17:25:56 +0000 (19:25 +0200)
commit9b6765e784b39c88cb8cdb85ab083e6c95a997ed
tree8d35428376d239946fcc82edb0fa1ba055e17d48
parent7c44651360dd94e17011fd1cd7ec3c755e0363b4
[clangd] Add Random Forest runtime for code completion.

Summary:
[WIP]
- Proposes a json format for representing Random Forest model.
- Proposes a way to test the generated runtime using a test model.

TODO:
- Add generated source code snippet for easier review.
- Fix unused label warning.
- Figure out required using declarations for CATEGORICAL columns from Features.json.
- Necessary Google3 internal modifications for blaze before landing.
- Add documentation for format of the model.
- Document more.

Subscribers: mgorny, ilya-biryukov, MaskRay, jkorous, arphaman, kadircet, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D83814
12 files changed:
clang-tools-extra/clangd/CMakeLists.txt
clang-tools-extra/clangd/quality/CompletionModel.cmake [new file with mode: 0644]
clang-tools-extra/clangd/quality/CompletionModelCodegen.py [new file with mode: 0644]
clang-tools-extra/clangd/quality/README.md [new file with mode: 0644]
clang-tools-extra/clangd/quality/model/features.json [new file with mode: 0644]
clang-tools-extra/clangd/quality/model/forest.json [new file with mode: 0644]
clang-tools-extra/clangd/unittests/CMakeLists.txt
clang-tools-extra/clangd/unittests/CodeCompleteTests.cpp
clang-tools-extra/clangd/unittests/DecisionForestTests.cpp [new file with mode: 0644]
clang-tools-extra/clangd/unittests/decision_forest_model/CategoricalFeature.h [new file with mode: 0644]
clang-tools-extra/clangd/unittests/decision_forest_model/features.json [new file with mode: 0644]
clang-tools-extra/clangd/unittests/decision_forest_model/forest.json [new file with mode: 0644]