summary 16--27
Posted enshengshi
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了summary 16--27相关的知识,希望对你有一定的参考价值。
1. Paper Reading
$ lfloor ab/p floor p$
我是根据ICSE2019schedule上的不同方向的论文来读的,打算一个主题读一篇来确定方向。
目前读的是 Automated Program Repair 方向的
Learning to Spot and Refactor Inconsistent Method Names。
- Problem definition: Spot and Refactor inconsistent method name. ( method has already implemented including method name and method body.)
- Background
- Paragraph vector: use it to compute similarities among the method name .
- CNNS: use it to identify similar method body .
- Word2Vec : embedding the token of method body.
- Our method:
Unsupervised learning
There are two phase in these method-- training and identification & suggestion.
a. Training phase takes tokens of method name and method body in the training set to produce two vector space--method name vector space and Method name space.
b. Inconsistency Identification
Given a method , they take a set of adjacent vectors for its name( (n_i)) and body ((b_i)) respectively (denoted (adj(n_i)) and (adj(b_i)))
adjacency is measured by cosine similarity.
when [method name of ((adj(n_i)))] (igcap) [method name of ((adj(b_i))) ] = (emptyset) , it is inconsistent.
To capture the similar behavior rather than the same name ,they relax the condition of consistency to take the first sub-token of each method name instead of comparing full method name,
when [first sub-token of method name of ((adj(n_i)))] (igcap) [ first sub-token of method name of ((adj(b_i))) ] = (emptyset) , it is inconsistent.
b. suggestion is to select new name in the set of method name of(adj((b_i))) according to some ranking strategies.
以上是关于summary 16--27的主要内容,如果未能解决你的问题,请参考以下文章