2 ms·
I wonder if well-respected real-world code samples could be used as a training and testing set. For example, one could use a subset of the Linux kernel source
by pmoriarty 9y ago
I wonder if well-respected real-world code samples could be used as a training and testing set.
For example, one could use a subset of the Linux kernel source code as training, and another (unseen) subset as testing.
Highly rated projects on github might work too.
- blt 9y agoAn active learning approach would be cool, where the formatter process a large corpus of code and asks a human operator for advice when it is especially uncertain about the best place to split. Even if training the splitting policy from scratch is too hard, learning would be a good way to establish cost weights on different kinds of rule violations.