SpamAssassin's scores are assigned using a genetic algorithm. See RescoringProcess for details.