Knowledge discovery by accuracy maximization