[PATCH] D94697: [clangd] Update CC Ranking model with better sampling.

Utkarsh Saxena via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 14 09:07:00 PST 2021


usaxena95 created this revision.
usaxena95 added a reviewer: adamcz.
Herald added subscribers: kadircet, arphaman.
usaxena95 requested review of this revision.
Herald added subscribers: cfe-commits, MaskRay, ilya-biryukov.
Herald added a project: clang.

A better sampling strategy was used to generate the dataset for this
model.
New signals introduced in this model:

- NumNameInContext: Number of words in the context that matches the name

of the candidate.

- FractionNameInContext: Fraction of the words in context matching the

name of the candidate.

We remove the signal `IsForbidden` from the model and down rank
forbidden signals aggresively.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D94697

Files:
  clang-tools-extra/clangd/Quality.cpp
  clang-tools-extra/clangd/quality/model/features.json
  clang-tools-extra/clangd/quality/model/forest.json

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D94697.316677.patch
Type: text/x-patch
Size: 3321 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210114/d1f9af98/attachment-0001.bin>


More information about the cfe-commits mailing list