The document presents a machine learning method called Prototype Ranking (PR) for selecting stocks. PR uses competitive learning to find representative prototypes from training stock data, then uses k-nearest neighbors to rank and select test stocks. Experiments show PR selects portfolios with higher average returns and risk-adjusted returns than a traditional non-machine learning method, especially for smaller portfolios. PR is well-suited for the noisy and imbalanced nature of stock market data.