SpartanRefactoring / Main

Eclipse plugin that performs automatic refactoring of Java source code, making it shorter, more idiomatic and more readable
https://www.spartan.org.il
100 stars 56 forks source link

KNN pattern classifier #854

Closed orimarco closed 7 years ago

orimarco commented 7 years ago

Given a Node, figure out what is its closest pattern.

Option 1:

Given a set of patterns p_1, ..., p_k and a node n, for each p_i try matching p_i and n:

return p_i which for, d_i is maximal.

orimarco commented 7 years ago

Great idea @orimarco, maybe another time.

yossigil commented 7 years ago

Indeed, amazing idea: you can advise student how to do it