LUAMINE = LUA MINing Engines: lots of useful learners. Three small files, each a few hundred lines long, no dependencies beyond Lua 5.x: generic helpers, AI primitives (Num, Sym, distance, trees, Bayes), and apps (clustering, classification, active learning, GA/DE/SA/LS optimizers, synthetic data, anomaly detection).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # LightGBM | |
| [tiny.cc/lightg](tiny.cc/lightg) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def stem(w): | |
| vowels = "aeiou" | |
| # Plural normalization | |
| if w.endswith("ies") and len(w) > 4: | |
| return w[:-3] + "y" | |
| if w.endswith("ves") and len(w) > 4: | |
| return w[:-3] + "f" | |
| # Long suffixes (Porter-inspired) |



