![WEIGHTED CODE COVERAGE](/abs-image/US/2021/05/20/US20210149793A1/abs.jpg.150x150.jpg)
基本信息:
- 专利标题: WEIGHTED CODE COVERAGE
- 申请号:US16687968 申请日:2019-11-19
- 公开(公告)号:US20210149793A1 公开(公告)日:2021-05-20
- 发明人: Liujia Shao , Yan Luo , Yan Xu , Anton Karputkin
- 申请人: International Business Machines Corporation
- 申请人地址: US NY Armonk
- 专利权人: International Business Machines Corporation
- 当前专利权人: International Business Machines Corporation
- 当前专利权人地址: US NY Armonk
- 主分类号: G06F11/36
- IPC分类号: G06F11/36 ; G06F8/75 ; G06K9/62 ; G06N20/00
摘要:
Provided is a method, a system, and a computer program product for determining a cognitive code coverage weight for code snippets located in a portion of code. The method includes generating a set of samples from code snippets included in a portion of code. Each sample in the set of samples includes features derived from the code snippets. The method further includes generating corresponding labels for the set of samples and creating a training dataset by applying the labels to the set of samples. The training dataset includes the set of samples with each sample including a label from the labels generated. The method further includes training a machine learning model using the labeled dataset to output a code coverage weight for code snippets.